iCloud显示集的用途是什么? [英] What's the use of iCloud Display Sets?

查看:419
本文介绍了iCloud显示集的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当向iOS应用程序添加iCloud支持时,可以通过指定 NSUbiquitousDisplaySet 来配置iCloud Display Set并将其与应用程序相链接。但是iCloud甚至没有它,所以我的问题是:所有的iCloud显示集的目的是什么?



在文档中找不到任何明确的答案。而且,基于Apple文档,如果使用iCloud,似乎为应用程序指定显示设置是必须的。



这是为了让人们可以为多个应用程式或iOS和Mac应用程式版本共用同一个显示集?

解决方案

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



信息属性列表键参考: / p>

NSUbiquitousDisplaySet(String - iOS,Mac OS X)包含您在iTunesConnect中配置的标识符字符串,用于管理应用程序的存储。分配的显示集确定应用程序从哪个移动数据文件夹(在用户的移动帐户中)检索其数据文件。



如果创建多个应用程序,显示集,或为每个应用程序分配不同的显示集。例如,如果您创建应用程序的精简版本,除了功能完整的版本,您可能为这两个版本使用相同的显示集,因为它们创建和使用相同的基本数据文件。每个应用程序都应该识别存储在其移动数据文件夹中的文件类型,并能够打开它们。



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?

解决方案

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.

这篇关于iCloud显示集的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆