摘要:
首先,我们需要知道何谓谓词,让我们看看官方的解释: The NSPredicate class is used to define logical conditions used to constrain a search either for a fetch or for in-memory fi
阅读全文
posted @ 2016-03-01 20:11
啊嘴
阅读(150)
推荐(0)
摘要:
/* 数据库迁移 1、设置coreData的配置为可迁移 2、添加一个新的集合版本 3、在新的版本里给表添加新的字段(2、3的顺序不可以错) 4、选择使用新的版本 5、桥接两个版本,把老数据库的数据桥接到新数据库 6、生成新的model类 //删除原有的类 */
阅读全文
posted @ 2016-03-01 19:35
啊嘴
阅读(143)
推荐(0)
摘要:
abort();//终止程序 NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Student" in
阅读全文
posted @ 2016-03-01 11:33
啊嘴
阅读(154)
推荐(0)
posted @ 2016-03-01 01:04
啊嘴
阅读(112)
推荐(0)