Open main menu

CDOT Wiki β

Nmpradhan

Joined 20 September 2011
Revision as of 10:15, 13 December 2011 by Nmpradhan (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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