2
4

1 回答 1

0

如果您希望您的应用程序打开 .png、.jpeg 或 .pg 类型的文件,您必须在文件的 Info.plist 中列出 Document type Key,如下所示:

<key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>files</string>
            <key>LSHandlerRank</key>
            <string>Owner</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>.png</string>
                <string>.jpegf</string>
                <string>.jpg</string>
            </array>
        </dict>
    </array>

参考:http:
//developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html

于 2013-07-30T07:09:53.943 回答