注册以通过iOS应用程序支持图像文件 [英] Register to support image files with iOS app
本文介绍了注册以通过iOS应用程序支持图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想注册以支持我的应用程序中的图像文件;因此,当用户在iPhone的照片应用程序中点击操作按钮时,我的应用程序图标将显示在打开方式为..."菜单中.我的info.plist中有以下内容
Hi I would like to register to support image files in my app; so when user tap on the action button in iPhone's photo app, my app icon would show up within the "open with ..." menu. I have the following in my info.plist
<dict>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
<dict>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
</array>
</dict>
,但无法使其显示在该菜单中.这是正确的方法吗?请帮忙谢谢!!
but can't get it to show up in that menu. is this the correct way? please help thank you!!
推荐答案
尝试像这样对我有用
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>png</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>jpeg</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>tiff</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.tiff</string>
</array>
</dict>
</array>
此链接中的更多信息 http://lists.apple.com/archives/cocoa-dev/2006/Jun/msg00747.html
这篇关于注册以通过iOS应用程序支持图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文