我想注册我的应用程序以从任何浏览器或照片库图像中使用我的应用程序打开图像。
例如如果我从任何浏览器或应用程序打开任何pdf,那么我已经展示了一些处理pdf的建议应用程序。那样,我想将我的应用程序显示为建议应用程序,以使用该应用程序打开任何图像。
我已经尝试过以下代码,但对我而言不起作用。
<dict>
<key>CFBundleTypeName</key>
<string>All Files</string>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>LSItemContentTypes</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
</dict>