Using Core Data, iCloud and CloudKit for syncing and backup and how it works together

后端 未结 2 816
無奈伤痛
無奈伤痛 2020-12-02 04:18

I am in the early stages of creating an app where I would like to save, sync and backup data. The app will not store any files just data in a database. It is going to be iO

2条回答
  •  星月不相逢
    2020-12-02 04:55

    With iOS 13, Apple announced new features in Core Data to better work with CloudKit. The main addition is NSPersistentCloudKitContainer which basically manages syncing between Core Data and CloudKit for you.

    You can learn more in the WWDC session Using Core Data with CloudKit.

    Apple also released a nice collection of docs for this very usage: Mirroring a Core Data store with CloudKit.

提交回复
热议问题