2015年12月21日

UITableView tableFooterView autolayout自动计算高度

摘要: UIView *tableFooter = [UIView new]; self.tableView.tableFooterView = tableFooter; UILabel *footerLabel = [UILabel new]; footerLabel.n... 阅读全文

posted @ 2015-12-21 21:51 永远的冰蝴蝶 阅读(4077) 评论(0) 推荐(0)

2015年11月26日

UITableView tableHeaderView autolayout自动计算高度

摘要: tableHeaderView自动计算高度 阅读全文

posted @ 2015-11-26 23:04 永远的冰蝴蝶 阅读(3685) 评论(0) 推荐(0)

2015年7月9日

iOS 运行时判断xib是否存在

摘要: 知识要点 1. xib最终会变成nib文件2. NSBundle实例方法 - (NSString *)pathForResource:(NSString *)name ofType:(NSString *)ext; 如果bundle中不存在某个文件,则返回的path为nil,如果存在 则会返回该文... 阅读全文

posted @ 2015-07-09 19:07 永远的冰蝴蝶 阅读(712) 评论(0) 推荐(0)

2015年4月16日

你想消除switch case 或者if语句吗?

摘要: 消除switch case 或者if语句 iOS 阅读全文

posted @ 2015-04-16 17:47 永远的冰蝴蝶 阅读(989) 评论(0) 推荐(0)

2015年4月13日

iOS 贝赛尔 圆形进度条

摘要: UIBezierPath *aPth = [UIBezierPath bezierPathWithArcCenter:CGPointMake(55, 65.f) radius:50.f startAngle:-M_PI_2 endAngle:M_PI_2 clockwise:YES]; ... 阅读全文

posted @ 2015-04-13 00:33 永远的冰蝴蝶 阅读(329) 评论(0) 推荐(0)

2015年4月10日

iOS 数组中查找字符串

摘要: 数组中查找字符串 阅读全文

posted @ 2015-04-10 23:55 永远的冰蝴蝶 阅读(2075) 评论(0) 推荐(0)

iOS 相同字符串地址

摘要: NSArray *helloWorld = @[@"world",@"hello"]; NSString *hello_Constant = @"hello"; NSString *helloFConstant = [NSString stringWithFormat:@"hel... 阅读全文

posted @ 2015-04-10 23:44 永远的冰蝴蝶 阅读(331) 评论(0) 推荐(0)

2015年4月9日

iOS 点击状态栏回到顶部

摘要: @property(nonatomic) BOOL scrollsToTop; // default is YES.UIScrollView 的scrollsToTop默认为YES,当页面里仅一个UIScrollView的时候 ,不需要做任何操作,点击状态栏就可以回到顶部当页面上... 阅读全文

posted @ 2015-04-09 12:17 永远的冰蝴蝶 阅读(845) 评论(0) 推荐(0)

2015年1月4日

UITextField限制文字的长度 支持中文联想

摘要: //UITextField+text_constraints.h 现已整理一个UITextView和UITextField字数限制的开源库 支持pod https://github.com/Binglin/UITextRange 阅读全文

posted @ 2015-01-04 16:09 永远的冰蝴蝶 阅读(818) 评论(0) 推荐(0)

2014年12月22日

iOS限制文本输入长度进阶之 二

摘要: 想在最后还能输入中文?当然得找到,输入了拼音还没选择汉字的标记啦!什么?你疑惑会没有标记?的确我也有过这样的疑惑,因为找遍了UITextField,完全是没有头绪的UITextField里没有,肯定就要找和它关联的啦好了,不和你绕圈子了,直接揭晓UITextField的UITextInput协议中有... 阅读全文

posted @ 2014-12-22 12:16 永远的冰蝴蝶 阅读(843) 评论(1) 推荐(0)

导航