如何从其他 iOS 应用程序读取文档?
我有一个类似于 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为其他应用程序不可能访问其他应用程序拥有的库文件夹,并且绝对不能访问私有应用程序文件夹。
文档处理可能会处理您的内容仅在一定程度上需要 - 不需要未将其类型注册到任何应用程序的文件,并且仅需要一个一个的文件,本质上也是复制文件。
如果这是您正在谈论的应用程序,您可以实现“打开”功能,该功能是 文档交互,这将允许用户在任何已注册处理扩展的应用程序中访问该文件/尿路感染。
特别是,这些方法:
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: