Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 iOS 设备中,邮件应用程序为附件提供“打开方式...”选项。列出的应用程序已向操作系统注册其 CFBundleDocumentTypes。我想知道的是,对于给定的文件类型,我的应用程序如何知道其他应用程序可以打开它?
对此没有公共 API,但是,您可以使用UIDocumentInteractionController该类打开 Mail.app 显示的工作表。它不会让您访问可以处理文档的应用程序的名称,但它可能总比没有好。
UIDocumentInteractionController