[英]for iOS dev, how my app might know, for a given file type, which other app could open it
in iOS devices, the Mail app offers "Open In..." option for attachments. 在iOS设备中,邮件应用程序为附件提供“打开方式...”选项。 The apps listed have registered their CFBundleDocumentTypes with the OS.
列出的应用已在操作系统中注册了CFBundleDocumentTypes。 What I am wondering is how my app might know, for a given file type, which other app could open it ?
我想知道的是,对于给定的文件类型,我的应用程序可能如何知道哪个其他应用程序可以打开它?
There is no public API for this, however, you can open the sheet that Mail.app shows using the UIDocumentInteractionController
class. 没有公共API,但是,您可以使用
UIDocumentInteractionController
类打开Mail.app显示的工作UIDocumentInteractionController
。 It doesn't give you access to the names of the Apps that can handle the document, but its probably better than nothing. 它不能让您访问可以处理文档的应用程序的名称,但是它总比没有好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.