2015年10月7日

IOS UITabelView的cell

摘要: 一、Cell的重用原理iOS设备的内存有限,如果用UITableView显示成千上万条数据,就需要成千上万个UITableViewCell对象的话,那将会耗尽iOS设备的内存。要解决该问题,需要重用UITableViewCell对象重用原理:当 滚动列表时,部分UITableViewCell会移出窗... 阅读全文

posted @ 2015-10-07 17:35 li仲玄 阅读(197) 评论(0) 推荐(0) 编辑

IOS 字典转模型

摘要: 用模型存放字典上的内容,方便使用一、创建类MJHero1、在头文件声明属性,声明对象方法,类方法#import @interface MJHero : NSObject@property (nonatomic, copy) NSString *name;@property (nonatomic, c... 阅读全文

posted @ 2015-10-07 17:15 li仲玄 阅读(329) 评论(0) 推荐(0) 编辑

iOS UIView 快速修改 frame

摘要: 我们修改frame中的某个值,需要进行繁琐的书写,例如:(1). 直接设置位置大小view.frame = CGRectMake(0, 0, 320, 150);(2). 只修改某个值view.frame = CGRectMake(view.frame.origin.x, 100, view.fra... 阅读全文

posted @ 2015-10-07 12:45 li仲玄 阅读(626) 评论(0) 推荐(0) 编辑

IOS 解析JSON

摘要: - (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self.navigationItem.leftBarButtonIt... 阅读全文

posted @ 2015-10-07 01:03 li仲玄 阅读(104) 评论(0) 推荐(0) 编辑

导航