简体   繁体   中英

How can I use iCloud Sync if I'm not using Core Data?

I've seen a few examples showing how to integrate iCloud with Core Data, but my app uses a handwritten SQLite persistence layer.

Am I just out of luck, or are there straightforward ways to do syncing and conflict resolution over iCloud with a non-Core Data database?

"Straightforward" might not be the first word that comes to mind, but you can definitely use iCloud storage in non-Core Data apps. You'll need to manage your storage engine, conflict resolutions, and data presentation yourself, however; you don't get the "easy" merging and resolution that Core Data gets you.

Read up on the iCloud Storage guide for detailed info. There's a good checklist a little way down that guides you through setting up document-based storage in your app.

you should check out this stack overflow answer link it iCloud synk but for OSX application basically the same thing. just use .plist files. hope it helps. It helped me on my mac app OSX app iClound synk

iCloud tutorial part 1

iCloud tutorial part 2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM