Skip to content

Instantly share code, notes, and snippets.

@youens
Created July 17, 2012 19:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youens/3131550 to your computer and use it in GitHub Desktop.
Save youens/3131550 to your computer and use it in GitHub Desktop.
Handle iOS URL Schemes
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
NSLog(@"url recieved: %@", url);
NSLog(@"scheme: %@", [url scheme]);
NSLog(@"query string: %@", [url query]);
NSLog(@"host: %@", [url host]);
// handle these things in your app here
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment