'Open In' functionality after downloading document?

Deadly 提交于 2019-12-13 05:37:33

问题


I am developing an iOS app that allows users to download documents off a server. I have gotten this to work fine and they can even view the document. What I want, though, is for the document to have an 'Open In' action so, when a button is pressed, the user is able to select another application that allows you to look at PDF documents -- for example, the Kindle App. Is this possible?


回答1:


Darn, I was wishing you were going to say "MacOS" because that would have made the answer a lot more fun (and do-able).

As far as I know, iOS still does not have an official SDK-legal way to have one app (your app) arbitrarily launch other app and specify an arbitrary document to open with it. This is part of the magic (?) of having to live within your own app sandbox.

On the Macintosh, this would be easy with Apple Events (among other things).



来源:https://stackoverflow.com/questions/9887539/open-in-functionality-after-downloading-document

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!