Advertisements
RSS

[XCode] Launch Google maps app

03 Jun


This code is to launch Google maps from an iPhone app and passing a longitude and latitude values:



NSString *googleMapsURLString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%1.6f,%1.6f",56.152227,-9.162045];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:googleMapsURLString]];

Advertisements
 
Leave a comment

Posted by on June 3, 2012 in Programming

 

Tags: , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: