上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页

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) 编辑

2017年2月17日

IOS transform的使用(移动,放大,旋转)

摘要: @interface ViewController () - (IBAction)up; - (IBAction)big ; - (IBAction)leftRotate ; @property (nonatomic,assign)CGFloat ty; @end @implementation ViewController //向上移动,transform以第一次状态为准,作变化 -... 阅读全文

posted @ 2017-02-17 22:27 守望星空 阅读(868) 评论(0) 推荐(0) 编辑

Xcode 自定义控件创建及触发事件

摘要: #pragma mark 控制器的view加载完毕的时候调用 //一般在这里进行界面的初始化 - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"%s","ddffg"); //添加 //创建控件 UIButton *btn=[[UIButton alloc]init]; ... 阅读全文

posted @ 2017-02-17 20:51 守望星空 阅读(622) 评论(0) 推荐(0) 编辑

IOS xcode 离线帮助文档安装和安装路径

摘要: 将想要安装的xcode 帮助文档 版本,将 ‘帮助文档包’ 放入‘xcode 帮助文档安装路径’。再将Xcode软件重启。 xcode 帮助文档安装路径: 在‘应用程序’->Xcode软件 右击‘显示包内容’->Contents->Developer->Documentation->DocSets 阅读全文

posted @ 2017-02-17 12:05 守望星空 阅读(221) 评论(0) 推荐(0) 编辑

Xcode SDK模拟器安装及安装路径

摘要: 将SDK想要装的版本,将SDK包放入‘mac中的SDK安装路径’。再将Xcode模拟器重启。 再打开Xcode模拟器,就可以在菜单栏的 ‘硬件’->’设备‘->’iPhone Retina 3.5-inch‘(根据当相发部的机子环境),就可以找到当前刚安装的SDK模拟器版本。 mac中的SDK安装路 阅读全文

posted @ 2017-02-17 11:32 守望星空 阅读(713) 评论(0) 推荐(0) 编辑

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页

导航