How do i open Google Maps for directions using coordinates on the iphone

后端 未结 7 1927
礼貌的吻别
礼貌的吻别 2020-12-12 18:29

I am using UIMapView to display locations on the iPhone. I want to do a directions from current location to the location of interest, I don\'t think its possible using MapKi

7条回答
  •  旧巷少年郎
    2020-12-12 19:05

    A solid solution is to create a view controller with a NIB that includes a UIWebView, and then pass the URL that exercises Google's map / direction services. This way, you keep the user in the application. This approach is not sufficient when pulling up a web page, because the Apple kit doesn't support zooming. But with OS4, at least the user can double click the home button and switch back to the app.

提交回复
热议问题