Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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