开发者

iPhone open default application for file type

开发者 https://www.devze.com 2023-03-13 12:02 出处:网络
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

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.

0

精彩评论

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

关注公众号