在iOS上添加与tiff文件的文件关联 [英] Add a file association with tiff files on iOS

查看:170
本文介绍了在iOS上添加与tiff文件的文件关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的iOS应用中创建一个与tiff文件关联的文件(即,我的应用程序显示为从Mail或Safari打开tiff文件的目标)。将以下内容添加到我的Info.plist文件似乎不起作用:

I'd like to create a file associate with tiff files in my iOS app (i.e. so that my app appears as a target for opening tiff files from Mail or Safari). Adding the following to my Info.plist file doesn't seem to work:

<key>CFBundleDocumentTypes</key>
<array>
  <dict>
    <key>CFBundleTypeName</key>
    <string>tiff</string>
    <key>LSItemContentTypes</key>
    <array>
      <string>public.tiff</string>
    </array>
    <key>LSHandlerRank</key>
    <string>Alternate</string>
  </dict>
</array>

我有一个应用程序,我以相同的方式与PDF关联,它工作正常。我认为不可能将应用程序与iOS上的tiff文件类型相关联,但我找不到任何说明该文件的文档。

I have an app that I associate with PDFs in the same way and it works fine. I believe that it is not possible to associate an app with the tiff file type on iOS, but I can't find any documentation stating that.

还有其他人有运气吗让这个工作或找到一个明确的不,你不能那样做?

Has anyone else had luck getting this to work or finding a definitive "no, you can't do that"?

推荐答案

我烧了苹果TSI这(我似乎永远不会最终使用它们),官方的答案是:不,你不能这样做。

I burned an Apple TSI on this (I never seem to end up using them anyway) and the official answer is: no, you can't do that.

我已经记录了增强请求Apple的错误报告网站: http://developer.apple.com/bugreporter/ 我建议你做如果这个问题对你来说也是个问题。

I've logged an enhancement request on Apple's bug reporting site: http://developer.apple.com/bugreporter/ and I suggest you do too if this issue is a problem for you.

这篇关于在iOS上添加与tiff文件的文件关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆