添加“打开方式..."iOS应用程序的选项

编程入门 行业动态 更新时间:2024-10-10 07:29:48
本文介绍了添加“打开方式..."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应用程序的选项

本文发布于:2023-11-13 06:20:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583680.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   选项   方式   iOS   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!