简体   繁体   English

在iOS中注册png文件类型

[英]Registering png file types in iOS

I am trying to register png files in order to open them from within the Mail app on the iPhone, but I never get an "Open In..." menu from within the Mail app. 我试图注册png文件以便从iPhone上的Mail应用程序中打开它们,但是我从Mail应用程序中从未得到“打开于...”菜单。 When I am using the same plist for pdf type (com.adobe.pdf), it works perfectly. 当我为pdf类型(com.adobe.pdf)使用相同的plist时,它可以完美工作。

Does anyone know if there is any limitation when registering png files? 有谁知道注册png文件时是否有任何限制?

Here is CFBundleDocumentTypes in my plist file: 这是我的plist文件中的CFBundleDocumentTypes

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

I was looking for an answer for the same question but for doc extension. 我一直在寻找相同问题的答案,但文档扩展名却是。 Anyway here is a list of the 3rd party extensions provided by Apple. 无论如何,这是Apple提供的第三方扩展的列表。

https://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html https://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM