4

I'm trying to launch the Keynote app from the application that I'm building. How can I know the URL scheme supported by Keynote (if any) ?

NSExplorer
  • 11,849
  • 12
  • 49
  • 62
  • See: http://wiki.akosma.com/IPhone_URL_Schemes (does not contain Keynote, though). And: http://stackoverflow.com/questions/6173749/how-to-open-keynote-app-from-another-app – magma Jun 07 '11 at 20:28

2 Answers2

4

In iTunes, sync apps, then go to apps in the navigation bar, Ctrl-click Keynote, show in Finder, copy it over to the desktop, change it's name to end with .zip, unzip it, open the payload folder, Ctrl-click Keynote.app, select Show Package Contents and view its Info.plist. :)

0

In Swift 3

let keynoteUrl = URL(string: "x-keynote-live://")
if UIApplication.shared.canOpenURL(keynoteUrl! as URL)
{
    UIApplication.shared.open(keynoteUrl!)
}

In Objective-C

NSURL *keynoteUrl = [NSURL URLWithString:@"x-keynote-live://"];
if ([[UIApplication sharedApplication] canOpenURL:keynoteUrl]) {
    [[UIApplication sharedApplication] openURL:keynoteUrl];
}
Jay Mehta
  • 1,511
  • 15
  • 20
  • Please don't add [the same answer](https://stackoverflow.com/a/45506556/5292302) to multiple questions. Answer the best one and flag the rest as duplicates. See [Is it acceptable to add a duplicate answer to several questions?](http://meta.stackexchange.com/q/104227/347985) – Petter Friberg Aug 04 '17 at 12:20