" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
//Address we want to search
NSString* addressText = @"Mindfire Solutions,SaritaVihar,NewDelhi";
NSString* searchQuery = [addressText stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
NSString* urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@", searchQuery];
//open the specified location on googleMap
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
We can use it as method and pass the address as string. on calling the method the googlemap open and show the location.
Mail (will not be published) (required)
Enter Captcha Code *
× 7 = forty two
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...