在两个应用程序之间共享iCloud数据 [英] Sharing iCloud data between two apps
问题描述
我想查找更多相关资讯。
I'm wanted find more information regarding this.
我打算使用iCloud核心资料储存库来建立应用程式。我想与另一个应用程序(不同的捆绑包标识符)是可能吗?显然,我将在另一个应用程序中包含iCloud功能,但是使用AppID和所有,它似乎有问题。
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.
另一个问题,如果我可以,我打算对CoreData和plist文件使用iCloud同步。从我所知道的,通常应用程序采取的方法之一,但我需要同步核心数据,因为它的意图,并使用一个小的plist文件,这不是一个设置文件。这是一个坏的方式吗?或者我应该使用其中的一个?
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?
推荐答案
- 用于iCloud存储的标识符与用于应用程序的包标识符不同, ,是的,这是完全可能的
- 是的。您可以使用iCloud在同一个应用程式中同步处理Core Data,「文件」和键/值组合
- The identifier used for iCloud storage is different from the bundle identifer used for the app, so, yes, it's entirely possible
- Yes. You can sync Core Data, "documents" and key-values pairs using iCloud in the same app
所有其他平等,我认为你会更好地把你的plist加入你的核心数据模型(更少的代码)。
All else being equal, I think you'd be better putting your plist into your Core Data model (less code).
这篇关于在两个应用程序之间共享iCloud数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!