我正在制作一个示例应用程序,它可以读取和共享多种文件,包括文档、视频、音频、图像……它最重要的功能之一是与邮件附件和 Safari 相关联。事实上,我确实按照这里的教程在邮件附件中成功打开了文档,但它在 Safari 上不起作用。我尝试了另一个可以打开文档文件的应用程序,它在 Safari 上运行良好。
这是我的 plist 文件的一部分:
UIFileSharingEnabled
CFBundleDocumentTypes
CFBundleTypeIconFiles
officedocs-icon50.png
officedocs-icon144.png
CFBundleTypeName
Office Documents Pro
LSHandlerRank
Owner
CFBundleTypeRole
Viewer
LSItemContentTypes
public.plain-text
public.utf8-plain-text
com.apple.traditional-mac-plain-text
public.rtf
com.apple.quicktime-movie (kUTTypeQuickTimeMovie)
public.xml
public.audio
public.movie
public.tiff
public.image
com.microsoft.word.doc
com.microsoft.word.docx
com.microsoft.excel.xls
com.microsoft.excel.xlsx
com.adobe.pdf
com.microsoft.powerpoint.ppt
com.microsoft.powerpoint.pptx
public.presentation
com.apple.keynote.key