我看到当您在 iOS 6+ 上收到图像消息时出现的“共享” Pane 中出现了许多不同的应用程序,并且想将我的应用程序也放入其中。我该怎么做呢?这是一个截图以供澄清:
例如,我的应用程序将位于 Catch 或 Evernote 旁边。
谢谢
最佳答案
您需要指明您的应用可以打开图像文件。这是在 Info.plist 中完成的:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Images</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.image</string>
</array>
</dict>
</array>
以上内容将允许您的应用出现在图像的“打开方式”菜单中。如果您的应用程序被选中,您的应用程序将被启动或带到前台,并且 application:openURL:sourceApplication:annotation:
委托(delegate)方法将被调用。该 URL 将包含对图像文件的引用。
关于ios - 如何将我的 ios 应用程序集成到 iOS 消息照片查看器的 "Share out" Pane 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16226337/