2

我已经看到了一些展示如何将 iCloud 与 Core Data 集成的示例,但我的应用程序使用了一个手写的 SQLite 持久层。

我只是运气不好,还是有直接的方法可以通过 iCloud 与非核心数据数据库进行同步和冲突解决?

4

2 回答 2

1

"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.

于 2012-05-05T20:24:35.377 回答
0

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

于 2012-07-18T10:26:58.897 回答