多图.1.创建空工程.2.3.4.创建一个单例,来管理coredata 的curd;5.创建单例后,.h文件//// SignCoreData.h// CustomCoreDataSample//// Created by GSS on 15/9/10.// Copyright (c) 20... Read More
posted @ 2015-09-10 14:20 lanacon Views(148) Comments(0) Diggs(0) Edit
一般程序app升级时,数据库有可能发生改变,如增加表字段,增加表等。 此时有两种操作:第一种就是毫无留情的把本地旧数据库直接删掉,重新建立新的数据库;第二种就是数据库迁移,更新数据库。第一种情况是简单粗暴型,但不会保留任何历史数据,一般不推荐使用。这里主要介绍第二种情况,分四步操作:第一步,上代码,... Read More
posted @ 2015-09-10 13:54 lanacon Views(305) Comments(0) Diggs(0) Edit