自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 问答 (1)
  • 收藏
  • 关注

原创 iOS九宫格布局按钮样式/不规则布局按钮样式/类似淘宝星星布局按钮样式

/** * 添加九宫格按钮 */-(void)setupBtnWithBtnArr:(NSMutableArray *)arr { // int totalloc =3; CGFloat btnVW = (mDeviceWidth-20*4)/3; CGFloat btnVH = 30; CGFloat margin =15; in

2016-10-27 17:48:49 1211

原创 TableView使默认下划线从最左边开始

//创建tableView时添加 if ([tableV respondsToSelector:@selector(setSeparatorInset:)]) { [tableV setSeparatorInset:UIEdgeInsetsZero]; } if ([tableV respondsToSelector:@selector(setLayoutM

2016-10-24 16:45:20 630

原创 tableView滚动时(渐变)隐藏显示导航栏

//添加头部-(void)createHeadImageView{ UIImage *image =[UIImage imageNamed:@"组-5"]; headImageBJView = [[UIImageView alloc] initWithFrame: CGRectMake(0, 0, mDeviceWidth, 210)]; headImageBJV

2016-10-12 19:14:50 3163

原创 删除字符串中带有html的空格/<p>标签/等

+(NSString *) stringDeleteString:(NSString *)str{ BOOL isOK=YES; NSMutableString *str1 = [NSMutableString stringWithString:str]; while (isOK) { if ([str1 rangeOfString:@""].leng

2016-10-11 18:59:56 1776

原创 修改字符串字体颜色

#pragma mark ---------- 修改字符串字体颜色 ---------NSString * str =[NSString stringWithFormat:@"%@ : %@",[dic objectForKey:@"title"],[dic objectForKey:@"value"]];NSMutableAttributedString *redStr =[[NSMutab

2016-10-11 18:56:13 1449

转载 把字符串中的特殊字符清除了

#pragma mark ---------- 把字符串中的特殊字符清除了 ---------+ (NSString *)handleSpaceAndEnterElementWithString:(NSString *)sourceStr{ NSString *realSre = [sourceStr stringByTrimmingCharactersInSet:[NSC

2016-10-11 18:54:26 1292

原创 判断字符串是否为空

#pragma mark ---------- 判断字符串是否为空 ---------- (BOOL) isBlankString:(NSString *)string { if (string == nil || string == NULL) { return YES; } if ([string

2016-10-11 18:52:47 439

转载 iOS之Base64编码解码

#pragma mark ----------加密----------- (NSString*) base64Encode:(NSData *)data{ static char base64EncodingTable[64] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K',

2016-10-11 18:49:56 694

原创 格式化的JSON格式的字符串转换成字典

/*! * @brief 把格式化的JSON格式的字符串转换成字典 * @param jsonString JSON格式的字符串 * @return 返回字典 */- (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString { if (jsonString == nil) { return n

2016-10-11 18:47:34 2424

原创 tableview的联系人索引/修改索引的字体颜色

-(void)setupIndexTitle{ //将26个字母放进_indexTitles中,表示段名,也表示索引表的内容 NSMutableArray *arrTmp=[NSMutableArray arrayWithCapacity:0]; NSMutableArray *arr =[[NSMutableArray alloc]initWith

2016-10-11 18:19:31 8443

原创 在github上传项目遇到的问题(error: failed to push some refs to 'https://github.com/CrazyDony/text.git')

在命令行中输入:echo  "# text" >>README.mdgit init git add README.mdgit commit -m "first commit"git remote add origin https://github.com/CrazyDony/text.gitgit push -u origin master会出现以

2016-07-21 17:17:43 29873 4

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除