Jan
19th
Mon
19th
URL Schema for iPhone.
This is just a little snippet that explains how you write your own URL schema for iPhone. You can use it i either in safari or a native application.
From safari:
<a href=”maps://your-location-or-something”>Go to maps</a>
From a native application:
NSURL *url = [[NSURL alloc] initWithString:@”your-location-or-something”];
[[UIApplication sharedApplication] openURL:url];
[url release];
The cool thing about this is if got your own app lets call it cookbook you can use URL schema from safari just by cookbook:// and you’ll be redirected to your app.