gpt4 book ai didi

ios - 注册应用程序支持的文件类型以从其他应用程序打开文件

转载 作者:行者123 更新时间:2023-12-02 20:03:08 26 4
gpt4 key购买 nike

我希望我的应用程序能够从整个 iOS 中的其他应用程序复制文件(图像、视频等),在浏览了苹果文档和一些在线资源后,我仍然无法让它工作。我附上了我的信息 plist 的图像。

enter image description here

这是该部分的 plist 代码:

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>All Files</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
</dict>
</array>

最佳答案

如果您希望 iOS 在有人单击带有您为您的应用声明的文件扩展名的电子邮件附件时打开您的应用,那么注册文件类型将会有所帮助。

但我认为您想要的是能够将文件从另一个应用程序共享到您的应用程序。您需要create an app extension of type "Share" .

关于ios - 注册应用程序支持的文件类型以从其他应用程序打开文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37713916/

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