Open main menu

CDOT Wiki β

Changes

User:Nmpradhan

452 bytes added, 10:15, 13 December 2011
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ā€¦'


'''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;
}
1
edit