dat*_*Woo 1 import powerpoint uti ios mime-types
目前,我在将.ppt文件导入 iOS 应用程序时遇到问题。到目前为止,这些 UTI 中的每一个都在工作,并允许我将其相应的文件类型导入到我的应用程序中。这包括 docx、doc、xslx、xsl、pptx。唯一拒绝让我导入(我的应用程序的图标永远不会显示)的是.ppt。
\n\n我使用了Apple官方网站上的UTI,但它仍然不起作用:https ://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
\n\n有任何想法吗?
\n\n<key>CFBundleDocumentTypes</key>\n<array>\n <dict>\n <key>CFBundleTypeName</key>\n <string>My Document File</string>\n <key>CFBundleTypeRole</key>\n <string>Viewer</string>\n <key>LSHandlerRank</key>\n <string>Owner</string>\n <key>LSItemContentTypes</key>\n <array>\n <string>com.microsoft.word.doc</string>\n <string>com.microsoft.word.wordml</string>\n <string>org.openxmlformats.wordprocessingml.document</string>\n <string>com.microsoft.excel.xls</string>\n <string>org.openxmlformats.spreadsheetml.sheet</string>\n <string>com.microsoft.powerpoint.\xe2\x80\x8bppt</string>\n <string>org.openxmlformats.presentationml.presentation</string>\n <string>com.adobe.pdf</string>\n <string>com.microsoft.bmp</string>\n <string>public.jpeg</string>\n <string>public.png</string>\n <string>public.tiff</string>\n <string>com.compuserve.gif</string>\n </array>\n </dict>\n</array>\nRun Code Online (Sandbox Code Playgroud)\n
找出原因了。请勿将 UTI 复制并粘贴到 Plist 文件或任何其他与此相关的字符串中。除了“.”之间有一个不可见的 Unicode 字符之外,它们是完全相同的字符。和“ppt”。如果您使用箭头键单步浏览字符串,您会发现必须点击两次才能越过“ppt”中的“p”,因为那里有一个字符。
当我自己输入 UTI 后,它就起作用了。
| 归档时间: |
|
| 查看次数: |
326 次 |
| 最近记录: |