Open map url in iPhone simulator always redirects
I have written an iPhone app that uses google maps for displayin开发者_如何转开发g maps.
I.e.
http://maps.google.com/maps?ll=48.85812229675187,2.294490337371826
with:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
But I always gets redirected to the current location. What am I doing wrong? How can I avoid this?
Try
http://maps.google.com/maps?q=48.85812229675187,2.294490337371826
(notice the q instead of ll)
This lets Maps.app search for the specified location.
精彩评论