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

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

问题描述

在iOS设备上,Mail应用程序为附件提供Open In ...选项。列出的应用程序已在操作系统中注册了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天全站免登陆