Created
July 17, 2012 19:45
-
-
Save youens/3131550 to your computer and use it in GitHub Desktop.
Handle iOS URL Schemes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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