gpt4 book ai didi

objective-c - 在 iOS 设备上的应用程序之间共享文件

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:50:01 24 4
gpt4 key购买 nike

是否可以在 iOS 上访问其他应用程序的文件数据?在 Android 上,根据以下 URL,这似乎是可能的。 Sharing files/ installation directory between two apps

最佳答案

不,那是不可能的。

所有 iOS 应用程序都是沙盒(至少在非越狱设备上),虽然钥匙串(keychain)数据可以共享(在共享其 Bundle Seed ID 的应用程序之间),但目前无法对基于文件的数据执行相同的操作。

您可以做的是通过服务器交换数据来将数据传递给其他应用程序,或者调用另一个应用程序已注册的 URL 方案。苹果说:

Using a URL-based syntax, you can access data from the Web, as well as pass information to other installed applications, such as Mail, iTunes, and YouTube. Your own application can declare a unique URL scheme, allowing any application to collaborate and share data with your app.

关于objective-c - 在 iOS 设备上的应用程序之间共享文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13136183/

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