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