What's the use of iCloud Display Sets?

為{幸葍}努か 提交于 2019-12-05 21:18:42

问题


When adding iCloud support to iOS app one can configure iCloud Display Set and link it with an app by specifying NSUbiquitousDisplaySet. But iCloud works even without it, so my question is: what's the purpose of iCloud Display Sets at all?

Couldn't find any clear answer anywhere in the docs. And what's more, based on the Apple docs it seems as if specifying Display Set for your app was mandatory if you use iCloud. That did confuse me a bit.

It is so that one might want to share the same Display Set for multiple applications or for iOS and Mac app versions?


回答1:


That's right, it's for allowing multiple apps to access the same mobile data store.

From the Information Property List Key Reference:

NSUbiquitousDisplaySet (String - iOS, Mac OS X) contains the identifier string that you configured in iTunesConnect for managing your application’s storage. The assigned display set determines from which mobile data folder (in the user’s mobile account) the application retrieves its data files.

If you create multiple applications, you can use the same display set for your applications or assign different display sets to each. For example, if you create a lite version of your application, in addition to a full-featured version, you might use the same display set for both versions because they create and use the same basic data files. Each application should recognize the file types stored in its mobile data folder and be able to open them.



来源:https://stackoverflow.com/questions/9476060/whats-the-use-of-icloud-display-sets

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