Questions concerning iCloud + core data

ぃ、小莉子 提交于 2019-12-03 08:43:11

Daniel Pasco talked about using Core Data and iCloud together at NSConference 2012. Some notes from that blog post:

launching with -com.apple.coredata.ubiquity.logLevel 3 to get a spamfest in the message log saying what Core Data and iCloud are doing.

The conclusion from this talk appears to be that using Core Data and iCloud are really not ready for each other at this stage.

He posted an updated Core Data Recipes project on Github which may or may not fix your problem.

Apple makes it seem easy, but there are a number of nuances with regard to correctly seeding iCloud with data, and what happens afterwards when iCloud support is toggled on and off on different devices.

I implemented a sample project that demonstrates a straightforward way to add iCloud support to Library-style CoreData apps. It's called iCloudStoreManager and it's available on github.

I'm still testing it before I add iCloud support to one of my own production apps. It's working, but I see unexpected errors and delays when an iPad 3 is in the mix. It works, but with long delays.

I've also tested with iPhone 4, iPhone 4S, and the original iPad, and any mix of those devices works well in my experience.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!