Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果CoreData sqlite + iCloud损坏,有没有一种好方法可以从iCloud备份我的sqlite信息?将 .sqlite 复制到另一个位置?当 iCloud 损坏时,从 .sqlite 中读取数据以创建新的 iCloud sqlite?
使用 migratePersistentStore API 在设备 /Documents 目录中创建存储文件的副本,它将被备份。有关更完整的说明和示例应用程序,请参见此处。
http://ossh.com.au/design-and-technology/software-development/sample-library-style-ios-core-data-app-with-icloud-integration/