Tharun
Tharun

Reputation: 1

Launching the iPhone maps application from your own code

How to Launch the iPhone maps application from our own code

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://maps.google.com/maps"]];

I tried this code,but its coming in browser.Its not opening in the iPhones Default map app... I want my code to display the iPhone default map app to come up after existing the application which is being run.

Upvotes: 0

Views: 255

Answers (1)

iOSPawan
iOSPawan

Reputation: 2894

use MKmapView to show map in Application instead of launching the Browser.

Upvotes: 0

Related Questions