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

坚强是说给别人听的谎言 提交于 2019-12-04 07:34:35

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>

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.

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