UIDocumentInteractionController [英] UIDocumentInteractionController

查看:84
本文介绍了UIDocumentInteractionController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使我发疯的问题.

I have a problem that make me crazy.

从我的应用程序中,当显示OpenIn菜单时,我将选择一个应用程序来打开文件(例如:DocsToGo),并打开文档进行编辑.

From my app, when an OpenIn menu is shown, I'll choose an application to open the file (ex:DocsToGo) and the document is opened for edit.

但是在编辑后,如何将其发送回我的应用程序或获取该文档的保存位置的链接?我如何获得该文件的新内容?

But after editing, how can I send it back to my app or get the link where that document is saved ? How can I get new content of that file ?

推荐答案

您的应用无法访问文件的更改版本.新版本位于您向其发送应用的沙箱中.可以将文件重新带回应用程序的唯一方法是,如果您的应用程序注册为可以打开该文档类型的应用程序.然后,您必须希望其他应用程序能够为用户提供在另一个应用程序中打开新文件的选项.

Your app cannot get access to the changed version of the file. The new version resides within the sandbox of the app to which you sent it. The only way you can get the file back into your app is if your app registers as an application that can open that document type. THEN you have to hope that the other application gives the user the option to open the new file in another application.

另一个选择是使用第三方云服务来存储文档.现在许多应用程序已与Dropbox集成.如果您的应用程序和DocsToGo都使用了Dropbox,那么您将能够编辑同一文档并获得对该文档的访问权限.

Another option is to use a third party cloud service for storing the documents. Many apps integration with Dropbox now. If your app and DocsToGo both used Dropbox, then you would be able to both edit the same document and get access to it.

简而言之:Apple不支持您的应用程序将文档发送到另一个应用程序,然后在进行更改后将其拉回.

In short: there is no Apple-supported way for your app to send a document to another app and then pull it back after changes have been made.

这篇关于UIDocumentInteractionController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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