摘要: 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) 编辑