Created
July 24, 2012 16:14
-
-
Save klaas/3170952 to your computer and use it in GitHub Desktop.
Open a location in Little Locations and let it be displayed in the create tab
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
// Create location url object | |
NSURL *url = [NSURL URLWithString:@"littlelocations://create?lat=18.99&lon=72.95&name=Mumbai%20Inner%20Circus"]; | |
// Test if Little Locations is installed | |
if([[UIApplication sharedApplication] canOpenURL:url] ) { | |
// Open Location in Little Locations | |
[[UIApplication sharedApplication] openURL:url]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment