如何无法在某些文件的“打开方式”选项中列出我的iOS应用

时间:2018-09-05 10:19:07

标签: ios open-with

尽管有以下设置,我如何排除打开仍在列出应用程序的html,js等文件。

我检查了CFBundleDocumentTypes并仅包括我感兴趣的那些。不知道为什么其余的扩展程序仍在列出应用程序。有什么我可以参考的文件吗?

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Microsoft Word</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.microsoft.word.doc</string>
            <string>org.openxmlformats.wordprocessingml.document</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Microsoft PowerPoint</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.microsoft.powerpoint.ppt</string>
            <string>org.openxmlformats.presentationml.presentation</string>
            <string>org.openxmlformats.presentationml.presentation.macroenabled</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Microsoft XLSX</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.microsoft.excel.xls</string>
            <string>org.openxmlformats.spreadsheetml.sheet</string>
            <string>org.openxmlformats.spreadsheetml.sheet.macroenabled</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeName</key>
        <string>PDF</string>
        <key>LSHandlerRank</key>
        <string>Default</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.adobe.pdf</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Text</string>
        <key>LSHandlerRank</key>
        <string>Default</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.plain-text</string>
            <string>public.rtf</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Images</string>
        <key>LSHandlerRank</key>
        <string>Default</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.png</string>
            <string>public.jpeg</string>
            <string>public.tiff</string>
            <string>com.compuserve.gif</string>
            <string>com.microsoft.bmp</string>
        </array>
    </dict>
</array>

0 个答案:

没有答案