Reputation: 21
I'm currently developing an app for iOS and I've got a list of PDF files in the app which I want to be able to open (and show).
Now I do know you can do that with the UIDocumentInteractionController, which then shows what apps are able to open the specific file, but I'm looking for a solution where I can open an app (e.g. Adobe Reader) without first having to open the UIDocumentInteractionController, tapping the app I want and then opening it.
Is this possible? And if so: how?
Thanks in advance!
DckWlff
Upvotes: 0
Views: 2089
Reputation: 2506
You can have a look at URL Schemes. But the app you want to open needs to support it. http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
You can open an app in your App like this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"myapp://"]];
Edit: You can find some schemes here: http://schemes.zwapp.com
Upvotes: 3