Associate image file types (UTIs) with iOS App — Doesn't show 'Open in…' in mail / safari

狂风中的少年 提交于 2019-12-06 05:25:03

问题


I have an app that opens multiple file types, but image files seem to be a different story. In Mail and Safari, the options for most file types with associated apps are 'Open In...' or 'Open In [AppName]' (if there is only one), however, since images are embedded as rich-text within emails and web pages, the option only exists to 'Save Image' and 'Copy'

Is it possible to associate an iOS app with image file types, and open images directly in the app, or do they have to all be saved to the photo library, then imported from there (please say no!)

Here are the image file associations from my plist:

    <dict>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.png</string>
        </array>
    </dict>
    <dict>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.tiff</string>
        </array>
    </dict>
    <dict>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.jpeg</string>
        </array>
    </dict>

回答1:


I assume the answer is the same as for tiff files: It's currently impossible to associate with images.

Add a file association with tiff files on iOS



来源:https://stackoverflow.com/questions/5401144/associate-image-file-types-utis-with-ios-app-doesnt-show-open-in-in-m

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!