添加“打开方式..."iOS应用程序的选项 [英] Adding "Open In..." option to iOS app

查看:23
本文介绍了添加“打开方式..."iOS应用程序的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 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?

推荐答案

看看iOS 文档交互编程主题:注册您的应用支持的文件类型.

只要您在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆