Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-21-2008, 04:07 PM   #3 (permalink)
smasher
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
Default use http instead of maps

This seems to work in os 2.2 if you use "http://" instead of "maps://". Try this.

Code:
NSString *urlString = @"http://maps.google.com/maps?daddr=37.74324,-121.43432&saddr=37.5,-121.4";
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: urlString]];
More info on params here:
objective-d » Blog Archive » Launching the iPhone maps application from your own code

Official list of params here:
Google Map Parameters - Google Mapki

Apple URL reference here:
https://developer.apple.com/iphone/l...roduction.html
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 736
18 members and 718 guests
anshuk1219, Domele, gascertificate, her-ur, Inupgames, iphone.savvy, jimmie6loa, kampftrinker, mapiko, nidie, oceanlablight, ratheesh, soonw29, srishtimehta, superblooddrainer, Yuvaraj.M, zbynda
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,825
Threads: 89,207
Posts: 380,637
Top Poster: BrianSlick (7,129)
Welcome to our newest member, srishtimehta
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:43 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.