objective-c - iCloud 显示套装有什么用?

标签 objective-c ios cocoa-touch icloud

将 iCloud 支持添加到 iOS 应用程序时,可以配置 iCloud 显示集并通过指定 NSUbiquitousDisplaySet 将其与应用程序链接。但是 iCloud 即使没有它也能正常工作,所以我的问题是:iCloud 显示集的目的到底是什么?

在文档中的任何地方都找不到任何明确的答案。而且,根据 Apple 文档,如果您使用 iCloud,似乎必须为您的应用程序指定显示集。这确实让我有些困惑。

这样一来,人们可能希望为多个应用程序或 iOS 和 Mac 应用程序版本共享同一个显示集?

最佳答案

没错,就是允许多个应用访问同一个移动数据存储。

来自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.

关于objective-c - iCloud 显示套装有什么用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9476060/

相关文章:

ios - 为什么 Main.storyboard 不显示?

objective-c - 不是 UIView subview 的按钮不起作用

ios - 如何在swift中逐渐隐藏状态栏

ios - 有没有办法以编程方式拒绝 GameKit 中的回合制比赛?

ios - 在 Swift 中将字符转换为 Int

iphone - 在不触发 touchesCancelled 的情况下滚动 UIScrollView

objective-c - 如何在鼠标光标周围绘制高光

ios - 如何找到崩溃发生的位置 - ios

objective-c - 从 ViewController 访问 drawRect?

ios - 将 UITextField 委托(delegate)设置为所有 UITextField 并为少数文本字段设置 View 动画