2017年2月18日

IOS 读取xib里的子控件

摘要: interface ViewController () /**获取.plist数据*/ @property (nonatomic,strong) NSArray *aps; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; //九宫格的总列数 ... 阅读全文

posted @ 2017-02-18 22:56 守望星空 阅读(376) 评论(0) 推荐(0) 编辑

IOS中 copy ,strong ,weak ,assign使用区别

摘要: .@property属性的用法 * weak(assign) : 代理\UI控件 * strong(retain) : 数组、模型)其他对象(除代理\UI控件\字符串以外的对象) * copy : 字符串(NSString) * assign : 非对象类型(基本数据类型int\float\BOOL 阅读全文

posted @ 2017-02-18 16:51 守望星空 阅读(141) 评论(0) 推荐(0) 编辑

IOS 字典转模型

摘要: 一.普通的字典模型:(实例) Aps.h //模型类:用来存放数据的类 #import <Foundation/Foundation.h> /** copy:NSString strong:一般对角 weak:UI控件 assign:基本数据类型 */ @interface Apps : NSObj 阅读全文

posted @ 2017-02-18 16:34 守望星空 阅读(135) 评论(0) 推荐(0) 编辑

IOS 纯代码添加 Button Image Label 添加到自定义View中

摘要: @interface ViewController () /**获取.plist数据*/ @property (nonatomic,strong) NSArray *apps; @end @implementation ViewController - (void)viewDidLoad { [su 阅读全文

posted @ 2017-02-18 15:21 守望星空 阅读(273) 评论(0) 推荐(0) 编辑

IOS 九宫格算法

摘要: @interface ViewController () @property (nonatomic,strong) NSArray *apps; //获取.plist数据 @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; //九宫格的总列数 i... 阅读全文

posted @ 2017-02-18 13:45 守望星空 阅读(955) 评论(0) 推荐(0) 编辑

IOS 获取.plist文件的数据

摘要: @property (nonatomic,strong) NSArray *apps; //获取.plist数据 阅读全文

posted @ 2017-02-18 13:43 守望星空 阅读(186) 评论(0) 推荐(0) 编辑

导航