Move local Core Data to iCloud

后端 未结 2 1160
别跟我提以往
别跟我提以往 2021-01-30 07:34

How can I enable iCloud Core Data in an app which already uses local storage Core Data?

I\'ve tried to use NSPersistentStoreUbiquitousContentNameKey in my p

2条回答
  •  忘掉有多难
    2021-01-30 08:19

    Take a look at this sample app which includes code to migrate a local core data store to iCloud and back again. Best read the associated docs and build the sample apps in your environment to get them working and once they are working then try and refactor your code to use a similar approach.

    Feel free to send me an email for further help. Apologies for not giving you an answer here but it can be quite a complicated issue to deal with.

    http://ossh.com.au/design-and-technology/software-development/sample-library-style-ios-core-data-app-with-icloud-integration/

提交回复
热议问题