开发者

How can I read documents from other iOS apps?

开发者 https://www.devze.com 2023-01-25 05:41 出处:网络
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)

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 开发者_JAVA技巧example: Suppose I download a PDF in my app, it is possible to read from AirSharing or File Magnet?


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:
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号