如何从其他 iOS 应用程序读取文档?

发布于 2024-10-03 01:37:37 字数 147 浏览 2 评论 0原文

我有一个类似于 FTP 客户端的应用程序。我可以在里面下载各种类型的文档。 (DOC、XLS、PDF、PPT 等)

现在,我想在另一个应用程序中阅读这些文档。例如:假设我在应用程序中下载 PDF,可以从 AirSharing 或 File Magnet 中读取吗?

I have an app which is similar to an FTP client. I can download various types of documents in it. (DOC, XLS, PDF, PPT etc)

Now, I want to read those documents in another application. For example: Suppose I download a PDF in my app, it is possible to read from AirSharing or File Magnet?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如此安好 2024-10-10 01:37:37

我认为其他应用程序不可能访问其他应用程序拥有的库文件夹,并且绝对不能访问私有应用程序文件夹。

文档处理可能会处理您的内容仅在一定程度上需要 - 不需要未将其类型注册到任何应用程序的文件,并且仅需要一个一个的文件,本质上也是复制文件。

如果这是您正在谈论的应用程序,您可以实现“打开”功能,该功能是 文档交互,这将允许用户在任何已注册处理扩展的应用程序中访问该文件/尿路感染。

特别是,这些方法:

UIDocumentInteractionController  
– presentOpenInMenuFromRect:inView:animated: 
– presentOpenInMenuFromBarButtonItem:animated:

I don't think it's possible for other applications to access Library folders owned by other apps, and definitely not private application folders.

Document handling might handle what you want only to an extent - not the files that don't have their types registered to any app, and only at a one by one file basis, essentially duplicating the files as well.

If this is your app you are talking about, you can implement the Open In feature which is part of the Document Interaction in iOS, which will allow the user to access the file in any app that is registered to handle the extension/UTI.

In particular, these methods:

UIDocumentInteractionController  
– presentOpenInMenuFromRect:inView:animated: 
– presentOpenInMenuFromBarButtonItem:animated:
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文