- 博客(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
1288
原创 TableView使默认下划线从最左边开始
//创建tableView时添加 if ([tableV respondsToSelector:@selector(setSeparatorInset:)]) { [tableV setSeparatorInset:UIEdgeInsetsZero]; } if ([tableV respondsToSelector:@selector(setLayoutM
2016-10-24 16:45:20
678
原创 tableView滚动时(渐变)隐藏显示导航栏
//添加头部-(void)createHeadImageView{ UIImage *image =[UIImage imageNamed:@"组-5"]; headImageBJView = [[UIImageView alloc] initWithFrame: CGRectMake(0, 0, mDeviceWidth, 210)]; headImageBJV
2016-10-12 19:14:50
3250
原创 删除字符串中带有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
1854
原创 修改字符串字体颜色
#pragma mark ---------- 修改字符串字体颜色 ---------NSString * str =[NSString stringWithFormat:@"%@ : %@",[dic objectForKey:@"title"],[dic objectForKey:@"value"]];NSMutableAttributedString *redStr =[[NSMutab
2016-10-11 18:56:13
1524
转载 把字符串中的特殊字符清除了
#pragma mark ---------- 把字符串中的特殊字符清除了 ---------+ (NSString *)handleSpaceAndEnterElementWithString:(NSString *)sourceStr{ NSString *realSre = [sourceStr stringByTrimmingCharactersInSet:[NSC
2016-10-11 18:54:26
1363
原创 判断字符串是否为空
#pragma mark ---------- 判断字符串是否为空 ---------- (BOOL) isBlankString:(NSString *)string { if (string == nil || string == NULL) { return YES; } if ([string
2016-10-11 18:52:47
501
转载 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
797
原创 格式化的JSON格式的字符串转换成字典
/*! * @brief 把格式化的JSON格式的字符串转换成字典 * @param jsonString JSON格式的字符串 * @return 返回字典 */- (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString { if (jsonString == nil) { return n
2016-10-11 18:47:34
2484
原创 tableview的联系人索引/修改索引的字体颜色
-(void)setupIndexTitle{ //将26个字母放进_indexTitles中,表示段名,也表示索引表的内容 NSMutableArray *arrTmp=[NSMutableArray arrayWithCapacity:0]; NSMutableArray *arr =[[NSMutableArray alloc]initWith
2016-10-11 18:19:31
8582
原创 在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
30128
4
空空如也
iOS中,scrollView的自动布局
2015-07-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人