调用苹果地图方向时,我没有收到语音方向。
这是我的代码。
CLLocationCoordinate2D userCoord = [self.userLocation coordinate];
CLLocationCoordinate2D opponentCoord = [self.opponentLocation coordinate];
MKPlacemark *fromPlace = [[MKPlacemark alloc] initWithCoordinate:userCoord addressDictionary:nil];
MKPlacemark *destinationPlace = [[MKPlacemark alloc] initWithCoordinate:opponentCoord addressDictionary:nil];
MKMapItem *fromItem = [[MKMapItem alloc] initWithPlacemark:fromPlace];
fromItem.name = @"Current Location";
MKMapItem *destinationItem = [[MKMapItem alloc] initWithPlacemark:destinationPlace];
destinationItem.name = self.game[@"opponent"];
NSArray *items = @[fromItem, destinationItem];
NSDictionary *options = @{MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving, MKLaunchOptionsMapTypeKey:@(MKMapTypeStandard), MKLaunchOptionsShowsTrafficKey:@YES};
[MKMapItem openMapsWithItems:items launchOptions:options];
我的 iPhone 5S 上的导航语音音量设置为正常,我已重新启动手机。语音导航指示在所有其他时间都可以正常工作,只是不是来自我的应用程序。