Sharing iCloud data between two apps

瘦欲@ 提交于 2019-12-04 18:27:37

问题


I'm wanted find more information regarding this.

I intend to make an app right now with iCloud core data store. And i wish to share that with another app (different bundle Identifier) is it possible? Obviously, i shall include the iCloud capabilities in another app as well ,but with the AppIDs and all, it seems questionable.

Another question if I may, I am planning to use iCloud sync for CoreData and a plist File. From what I know, usually apps take one of the approach, but I needed to sync core data as it is intended, and use a small plist file, which isn't a settings file. Is this a bad way ? or should i just use one of the two?


回答1:


  1. The identifier used for iCloud storage is different from the bundle identifer used for the app, so, yes, it's entirely possible
  2. Yes. You can sync Core Data, "documents" and key-values pairs using iCloud in the same app

All else being equal, I think you'd be better putting your plist into your Core Data model (less code).



来源:https://stackoverflow.com/questions/8882682/sharing-icloud-data-between-two-apps

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