随笔分类 -  objc

About Object-C
摘要:1 // 2 // main.m 3 // 结构体作为对象属性 4 // 5 // Created by 李鑫 on 2017/2/22. 6 // Copyright © 2017年 CCSU. All rights reserved. 7 // 8 9 #import 10 11 typedef struct{ 12 char *name; 13 ... 阅读全文
posted @ 2017-02-22 08:13 BeanPaste 阅读(213) 评论(0) 推荐(0)
摘要:1 // 2 // main.m 3 // OC中的对象方法 4 // 5 // Created by 李鑫 on 2017/2/20. 6 // Copyright © 2017年 CCSU. All rights reserved. 7 // 8 9 #import 10 @interface StudyRoom : NSObject 11 { 12 @... 阅读全文
posted @ 2017-02-21 11:07 BeanPaste 阅读(254) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2017-02-17 17:27 BeanPaste 阅读(1) 评论(0) 推荐(0)
摘要:在字典转模型中遇到了这样的代码: 1 #import "HMAppInfo.h" 2 3 @implementation HMAppInfo 4 5 - (instancetype)initWithDict:(NSDictionary *)dict 6 { 7 // self 是 对象 ... 阅读全文
posted @ 2015-10-05 09:38 BeanPaste 阅读(338) 评论(0) 推荐(0)
摘要:1 //案例代码- 来自黑马D3懒加载部分 2 - (NSArray *)appList 3 { 4 if (_appList == nil) { 5 // appList保存的是字典=>模型 6 // _appList = [NSArray arrayWit... 阅读全文
posted @ 2015-10-03 21:12 BeanPaste 阅读(289) 评论(0) 推荐(0)