Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a file association with tiff files on iOS

Tags:

ios

iphone

tiff

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>

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"?

like image 860
Josh Knauer Avatar asked Feb 23 '11 16:02

Josh Knauer


1 Answers

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.

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.

like image 147
Josh Knauer Avatar answered Nov 03 '22 03:11

Josh Knauer