Difference between revisions of "User:Nmpradhan"

From CDOT Wiki
Jump to: navigation, search
(Created page with ' '''create custom URl for html and call appdelegate''' myapp:// myapp://some/path/here myapp://?foo=1&bar=2 myapp://some/path/here?foo=1&bar=2 - (BOOL)applicati…')
 
(No difference)

Latest revision as of 10:15, 13 December 2011


create custom URl for html and call appdelegate


myapp://

myapp://some/path/here

myapp://?foo=1&bar=2

myapp://some/path/here?foo=1&bar=2

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { if (!url) { return NO; }

NSString *URLString = [url absoluteString]; [[NSUserDefaults standardUserDefaults] setObject:URLString forKey:@"url"]; [[NSUserDefaults standardUserDefaults] synchronize]; return YES; }