添加“打开方式..."iOS应用程序的选项 [英] Adding "Open In..." option to iOS app
问题描述
在 iOS 设备上,邮件应用程序为附件提供打开方式..."选项.列出的应用程序已向操作系统注册了它们的 CFBundleDocumentTypes.我想知道我的应用程序如何允许用户在其他应用程序中打开我的应用程序生成的文件.Mail 是唯一提供此功能的应用吗?
On iOS devices, the Mail app offers "Open In..." option for attachments. The apps listed have registered their CFBundleDocumentTypes with the OS. What I am wondering is how my app might allow users to open files generated by my app in other apps. Is Mail the only app that provides this feature?
推荐答案
只要您在 Info.plist 中提供您的文档类型,识别该文档类型的其他应用就会在其打开方式"选项中列出您的应用.当然,前提是您的应用创建了其他应用可以打开的文档.
As long as you provide your document types in your Info.plist, other apps that recognize that document type will list your app in their "open in" choices. Of course, that presumes that your app creates documents that other apps can open.
这篇关于添加“打开方式..."iOS应用程序的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!