开发者

Open map url in iPhone simulator always redirects

开发者 https://www.devze.com 2023-01-30 18:42 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消