2013-08-19 20 views

回答

2

您应该创建一个MKMapItem的实例并使用openMapsWithItems:launchOptions:方法打开地图应用程序。

检查this reference


对于iOS 5(你应该考虑放弃对支持)我觉得格式是:

[NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f", 
       currentLocation.latitude, currentLocation.longitude, 
       destinationLocation.latitude, destinationLocation.longitude]; 
+0

多数民众赞成iOS6的很好的解决方案,但我需要支持的iOS5 –