简体   繁体   中英

iPhone open default application for file type

I am writing an app that will be downloading user's documents from a remote source. once my app has this document I want to open it in the default application. (.PDF) In android it was simple, but I cant seem to find any resources for iPhone.

How do I open the default application with the file?

EDIT
The file on the remote source is not a url. it needs to be downloaded through a web-service. I will either be saving the file to disk or trying to open it from memory.

You are probably looking for UIDocumentInteractionController . Read this guide as well for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM