摘要: ios通知机制 阅读全文
posted @ 2014-06-02 01:06 delegate 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 在IOS开发中,要做字典转模型一般情况如下: 1 /** 2 * 声明方法 3 */ 4 - (instancetype) initWithDictionary:(NSDictionary *)dict; 5 + (instancetype) carWithDictionary:(NSDict... 阅读全文
posted @ 2014-05-27 23:10 delegate 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 数组分类:显示中文 阅读全文
posted @ 2014-05-25 20:36 delegate 阅读(1244) 评论(0) 推荐(0) 编辑
摘要: OC KVC 阅读全文
posted @ 2014-05-25 19:54 delegate 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1. @property的参数说明========================================ARC是苹果为了简化程序员对内存的管理,推出的一套内存管理机制使用ARC机制,对象的申请和释放工作会在运行时,由编译器自动在代码中添加retain和release1> strong:强指... 阅读全文
posted @ 2014-05-23 23:47 delegate 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 上图是程序运行的过程图,程序有一个主循环,一直不断的去检查是否有监听的事件到达,addTarget:(id) action:(SEL) forControlEvents:(UIControlEvents是把用户点击按钮的监听注册到运行循环中,当运行循环检测到用户点击按钮事件,就去调用id的sel方法... 阅读全文
posted @ 2014-05-23 01:43 delegate 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 1 UIImage *image = [UIImage imageNamed:tempAppInfo.icon];2 UIImageView *appIcon = (UIImageView *) [appView viewWithTag:0]; 3 appIcon.image = image;每次执... 阅读全文
posted @ 2014-05-23 00:35 delegate 阅读(558) 评论(0) 推荐(0) 编辑
摘要: This is a temporary post that was not deleted. Please delete this manually. (27e4b358-de2e-45ac-b4e5-831dcdc13031 - 3bfe001a-32de-4114-a6b4-4005b770f6d7) 阅读全文
posted @ 2014-05-21 18:48 delegate 阅读(142) 评论(0) 推荐(0) 编辑