NSExplorer
NSExplorer

Reputation: 12149

URL scheme reference for the Keynote iPad app?

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) ?

Upvotes: 4

Views: 1877

Answers (2)

Jay Mehta
Jay Mehta

Reputation: 1801

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];
}

Upvotes: 0

user142019
user142019

Reputation:

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. :)

Upvotes: 4

Related Questions