上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 获取创建自己的上一级视图 self.parentViewController 并且强制转换 阅读全文
posted @ 2016-05-27 04:31 浪味小仙女 阅读(430) 评论(0) 推荐(0) 编辑
摘要: iOS9之前 有些时候因为需要手动调用loadview 但是有风险,系统不再调用viewDidLoad 所以手动调用loadview是错误的 iOS9之后出现了loadViewIfNeeded解决了这个问题 调用这个方法视图会创建出来并且不会忽略viewDidLoad 如果ios9之前的版本 先调l 阅读全文
posted @ 2016-05-27 04:30 浪味小仙女 阅读(1957) 评论(0) 推荐(0) 编辑
摘要: if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0) { } 阅读全文
posted @ 2016-05-27 04:23 浪味小仙女 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1.新建项目不勾选coredata 2.pod 'MagicalRecord' 3.新建模型文件 4.添加实体和属性 5.Create NSManagedObject subclass 6.增 Person *person1 = [Person MR_createEntity]; person1.f 阅读全文
posted @ 2016-05-09 20:07 浪味小仙女 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 整理自:http://www.jianshu.com/p/337872d95727 1.在创建项目的时候勾选使用coreData或者new file 一个DataModel 2.新建Entity,添加属性 3.添加类 4.上下文 @interface ViewController () { AppD 阅读全文
posted @ 2016-05-09 15:39 浪味小仙女 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 直接整理用法 1.设置高度宽度 [view1 autoSetDimension:ALDimensionHeight toSize:70.0]; [view1 autoSetDimension:ALDimensionWidth toSize:70.0]; 2.相对于父视图 ALEdgeInsets d 阅读全文
posted @ 2016-05-08 15:55 浪味小仙女 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 整理自:https://github.com/CoderMJLee/MJRefresh#%E6%94%AF%E6%8C%81%E5%93%AA%E4%BA%9B%E6%8E%A7%E4%BB%B6%E7%9A%84%E5%88%B7%E6%96%B0 1.导入:pod'MJRefresh' 2.结构 阅读全文
posted @ 2016-05-08 14:55 浪味小仙女 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 整理自:http://www.jianshu.com/p/93c242452b9b。 1.MJExtension的功能 字典-->模型 模型-->字典 字典数组-->模型数组 模型数组-->字典数组 2.pod导入语句 pod 'MJExtension' 3.简单的数据模型转换 Student * 阅读全文
posted @ 2016-05-08 13:39 浪味小仙女 阅读(6864) 评论(0) 推荐(0) 编辑
摘要: https://github.com/nicklockwood/BaseModel 字典封装成model 自动封装 要求属性的名字与字典一样 不能有对象 如果其中有需要自己封装的对象属性 重写setWithDictionary -(void)setWithDictionary:(NSDictiona 阅读全文
posted @ 2016-04-03 12:30 浪味小仙女 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 微博开放平台:http://open.weibo.com/ 微博开放接口的调用,如发微博、关注等,都是需要获取用户身份认证的。目前微博开放平台用户身份鉴权主要采用的是OAuth2.0。另外,为了方便开发者开发、测试自己的应用,我们还提供了Basic Auth的身份鉴权方式,但Basic Auth仅适 阅读全文
posted @ 2016-03-22 16:52 浪味小仙女 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页