2

当用户在网络中搜索图像并且他/她正在选择它时,我希望注册我的应用程序以打开它。这是我包含的内容,但该应用程序未检测到图像文件!

<dict>
<key>CFBundleTypeName</key>
<string>PNG Image</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
    <string>png</string>
    <string>PNG</string>
</array>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
    <string>public.png</string>
</array>
</dict>
4

1 回答 1

0

您尝试执行的操作仅适用于 Mac OS X,不适用于 iPhone。这里解释:DocumentBasedApplications -- editor and viewer role

在 iOS 上,您的应用程序位于沙箱中(应用程序运行时环境)。

每个应用程序都可以访问自己沙箱的内容,但不能访问其他应用程序的沙箱。

于 2011-07-19T10:41:43.820 回答