如何在iOS上将文件发送到另一个应用程序

编程入门 行业动态 更新时间:2024-10-10 10:30:46
本文介绍了如何在iOS上将文件发送到另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Dropbox应用程序允许将文件发送到其他应用程序,例如teamviewer或iBook。他们怎么做到的?

Dropbox application permit to send files to other applications like teamviewer or iBook. How do they do that?

我认为将数据发送到另一个应用程序的唯一方法是URL方案。

I thought the only way to send data to another application was the url scheme.

推荐答案

我认为Dropbox使用文档交互 API来提供此功能。

I think Dropbox using Document Interaction API to provide this functionality.

文档:

您可以使用文档交互控制器来显示文件预览或提示用户为文件选择操作。

You can use a document interaction controller to display a file preview or to prompt the user to choose an action for a file.

  • 要模态显示文件预览,请调用 presentPreviewAnimated:方法。
  • 提示用户一组选项(包括在另一个应用程序中打开文件的选项),调用 presentOptionsMenuFromRect:inView:animated:或 presentOptionsMenuFromBarButtonItem:animated:方法。
  • 要仅提示用户在另一个应用程序中打开文件,请调用 presentOpenInMenuFromRect:inView:animated :或 presentOpenInMenuFromBarButtonItem:animated:方法。
  • To modally display a file preview, call the presentPreviewAnimated: method.
  • To prompt the user with a set of options, including an option to open the file in another app, call the presentOptionsMenuFromRect:inView:animated: or presentOptionsMenuFromBarButtonItem:animated: method.
  • To prompt the user only to open the file in another app, call the presentOpenInMenuFromRect:inView:animated: or presentOpenInMenuFromBarButtonItem:animated: method.

更多推荐

如何在iOS上将文件发送到另一个应用程序

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

发布评论

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

>www.elefans.com

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