13
我正在使用下面的代码从iOS应用程序打开Google地图,在该应用程序中传递地点的起点和终点。iOS:如何在谷歌地图上启用音频指示
它从起点到终点正确导航,但不通过导航音频(语音)。
我想启用语音指导功能。
请帮助
ClientState *clientState = [ClientState sharedInstance];
CLLocation *currentLocation = clientState.currentLocation;
NSString *googleMapsURLString = [NSString stringWithFormat:@"maps://maps.google.com/?xyz=xyz&saddr=%1.8f,%1.8f&daddr=%@,%@",
currentLocation.coordinate.latitude, currentLocation.coordinate.longitude, trip.pickupLatitude, trip.pickupLongitude];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:googleMapsURLString]];
你使用的是iOS 6吗?它不支持语音控制ios 5没有 – 2013-02-09 15:31:51
我可以在iOS 6中实现这一点...或任何真实的链接..? – Azhar 2013-02-09 17:09:49
不可能在ios6对不起还没有反正 – 2013-02-09 17:10:34