gpt4 book ai didi

ios - 在应用程序之间共享 iCloud 文档

转载 作者:可可西里 更新时间:2023-11-01 06:15:43 24 4
gpt4 key购买 nike

我目前在 App Store 中有两个使用 iCloud 的应用程序。他们使用不同的权利标识符,但现在我希望能够从第二个应用程序中的第一个应用程序访问文档。

是否可以将第一个应用程序的通用容器标识符添加到第二个应用程序以访问第一个应用程序的文档,而不会损坏第二个应用程序已经存在的通用容器?

显然,我一开始就应该让它们共享标识符,但在首次提交应用时没有想到这一点。

最佳答案

从文档来看,看起来确实可以做你想做的事。请参阅 Configuring a Common Ubiquity Container for Multiple Apps 部分在 iCloud 设计指南中,部分内容如下:

For example, say you provide a free and paid version of your app. You’d want users, who upgrade, to retain access to their iCloud documents. Or, perhaps you provide two apps that interoperate and need access to each other’s files. In both of these examples, you obtain the needed access by specifying a common ubiquity container and then requesting access to it from each app.

本节继续解释如何将应用程序的容器之一配置为通用容器:

In the first row of the Xcode target editor’s iCloud Containers list, enter the bundle identifier of your primary iCloud-enabled app.

关于ios - 在应用程序之间共享 iCloud 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18106632/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com