gpt4 book ai didi

ios - 与我的应用程序共享图像

转载 作者:行者123 更新时间:2023-11-30 13:06:54 24 4
gpt4 key购买 nike

我想与我的应用程序共享图像,例如 Facebook、whatsapp 或许多其他应用程序...我使用以下代码:

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array>
<string>Icon-22x29.png</string>
<string>Icon-44x58.png</string>
<string>Icon-64x64.png</string>
<string>Icon-320x320.png</string>
</array>
<key>CFBundleTypeName</key>
<string>My App</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.image</string>
</array>
</dict>
</array>

问题是,当我从照片应用程序或电子邮件应用程序中单击共享照片时,我的应用程序没有出现,出了什么问题?

如果我使用 com.adbobe.pdf 并分享 pdf,它就会出现!

谢谢!

最佳答案

您需要注册您的应用程序可以使用 iOS 打开的文档类型。为此,您需要为应用程序可以打开的每种文档类型添加文档类型到应用程序的 Info.plist。此外,如果 iOS 无法识别任何文档类型,您将需要为该文档类型提供统一类型标识符 (UTI)。

引用How do I get my application to show up in the "Open in..." menu on iOS for a specific document type?详细说明!

关于ios - 与我的应用程序共享图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39247070/

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