Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iPhone:图像文件扩展名不';我无法与我的应用程序关联_Iphone_Objective C_Ios_Image_File Extension - Fatal编程技术网

iPhone:图像文件扩展名不';我无法与我的应用程序关联

iPhone:图像文件扩展名不';我无法与我的应用程序关联,iphone,objective-c,ios,image,file-extension,Iphone,Objective C,Ios,Image,File Extension,我正在尝试将我的iPhone应用程序与打开的图像文件(如jpeg和png)相关联。我是这样做的: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSItemContentT

我正在尝试将我的iPhone应用程序与打开的图像文件(如jpeg和png)相关联。我是这样做的:

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.image</string>
        </array>
    </dict>
</array>
CbundleDocumentTypes
CbundleTypeRole
观众
lsItemContentType
公众形象
但这个解决方案不起作用。如果我将public.image替换为public.objective-c-source,我的应用程序将开始打开objective-c源代码。但是当我使用public.image或public.jpeg时,它不起作用

你能告诉我哪里错了吗?谢谢您的回答。

根据这一点(您需要登录devforums.apple.com查看此链接),这是不可能的。其中提到的原因如下:

不允许,这意味着您将取消 iOS摄像头和照片应用程序。注册应用程序特有的文件类型

-看起来您无法真正打开图像