Register to support image files with iOS app

后端 未结 1 1940
一向
一向 2021-01-21 22:30

Hi I would like to register to support image files in my app; so when user tap on the action button in iPhone\'s photo app, my app icon would show up within the \"open with ...\

相关标签:
1条回答
  • 2021-01-21 23:01

    Try like this it works for me

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

    more information in this link http://lists.apple.com/archives/cocoa-dev/2006/Jun/msg00747.html

    0 讨论(0)
提交回复
热议问题