Mime Type (or something) So iOS Mail Does Not Open in Quicklook?

一个人想着一个人 提交于 2020-01-22 22:55:10

问题


I've been following the brilliant instructions in this answer, which work perfectly. However, my file type is mime "application/notforquicklook" and quicklook still tries to open it. This causes general gear spinning and nothing happening.

How can I get around this problem? My files are compressed plists. Before I was using full XML plists, which worked fine, but they are too big (with no advantage).

Is this a question of choosing the right MIME type, or something else?


回答1:


in fact, you should assign "public.data" to your "Conforms to UTIs" (UTTypeConformsTo) in "Exported Type UTIs" (CFBundleDocumentTypes)

<dict>
    <key>UTTypeConformsTo</key>
    <array>
        <string>public.data</string>
    </array>
    <key>UTTypeDescription</key>
    <string>Scrollshow Presentation</string>
    <key>UTTypeIdentifier</key>
    <string>com.plimse.scrollshow</string>
    <key>UTTypeTagSpecification</key>
    <dict>
        <key>public.filename-extension</key>
        <string>scrollshow</string>
        <key>public.mime-type</key>
        <string>mime/x-scrollshow</string>
    </dict>
</dict>



回答2:


This worked for me, remove this from the xxx-info.plist file:

<key>UTTypeConformsTo</key>
<array>
    <string>public.xml</string>
</array>

Now only my app shows up in the mail app.



来源:https://stackoverflow.com/questions/8764525/mime-type-or-something-so-ios-mail-does-not-open-in-quicklook

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