UTImportedTypeDeclarations未按预期工作

时间:2018-05-03 09:05:37

标签: ios swift

我正在尝试向我的应用添加OPML导入/导出选项。遇到以下问题:

1)导入OPML正常工作,直到我安装任何其他使用OPML的应用程序。文件变为“灰色”"

2)尽管设置了资源(22x29和44x58像素),OMPL文件的图标仍未显示

使用Info.plist中添加的以下代码:

<key>UTExportedTypeDeclarations</key>
<array>
    <dict>
        <key>UTTypeConformsTo</key>
        <array>
            <string>public.data</string>
        </array>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>icon_44x58</string>
            <string>icon_22x29</string>
        </array>
        <key>UTTypeIdentifier</key>
        <string>com.tuneVu.opml</string>
        <key>UTTypeTagSpecification</key>
        <dict>
            <key>public.filename-extension</key>
            <string>opml</string>
            <key>public.mime-type</key>
            <string>text/x-opml</string>
        </dict>
    </dict>
</array>
<key>UTImportedTypeDeclarations</key>
<array>
    <dict>
        <key>UTTypeConformsTo</key>
        <array>
            <string>public.data</string>
        </array>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>icon_44x58</string>
            <string>icon_22x29</string>
        </array>
        <key>UTTypeIdentifier</key>
        <string>com.tuneVu.opml</string>
        <key>UTTypeReferenceURL</key>
        <string></string>
        <key>UTTypeTagSpecification</key>
        <dict>
            <key>public.filename-extension</key>
            <string>opml</string>
            <key>public.mime-type</key>
            <string>text/x-opml</string>
        </dict>
    </dict>
</array>

0 个答案:

没有答案