问题描述
我正在使用OpenIn功能并将网络浏览器中的文件打开到我的应用程序中。所有文件类型都已注册,并且工作正常。当尝试从Web浏览器打开docx,pptx或其他文件时,打开方式框未显示我的应用程序名称。虽然我可以使用UIDocumentInteractionController在我的应用程序中查看docx或pptx文件。我不知道问题出在哪里因为它的工作非常好。
I am using the "OpenIn" functionality and opening files from web browser into my application. All the file types are registered and they work fine. When tried to open docx, pptx or other file from web browser, the "Open In" box did not show my application name. Though I can view a docx or pptx file within my application by using UIDocumentInteractionController. I dont know where the problem lies as its working very fine.
欢迎任何建议。
提前感谢您的帮助
Any suggestions are welcome.Thanks for help in advance
推荐答案
doc UTI:com.microsoft.word.doc
doc UTI:com.microsoft.word.doc
docx UTI:org.openxmlformats.wordprocessingml.document
docx UTI:org.openxmlformats.wordprocessingml.document
ppt UTI:com.microsoft.powerpoint.ppt
ppt UTI:com.microsoft.powerpoint.ppt
pptx UTI:org.openxmlformats.presentationml.presentation
pptx UTI:org.openxmlformats.presentationml.presentation
xls UTI:com.microsoft.excel.xls
xls UTI:com.microsoft.excel.xls
xlsx UTI:org.openxmlformats.spreadsheetml.sheet
xlsx UTI:org.openxmlformats.spreadsheetml.sheet
示例:
<dict>
<key>CFBundleTypeName</key>
<string>Microsoft Word 2003 XML document</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>org.openxmlformats.wordprocessingml.document</string>
</array>
</dict>
这篇关于无法使用OpenIn功能在app中通过webbrowser打开docx文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!