Ios currentAdvice.adviceInstruction返回奇怪的结果
在IOS上,我使用委托方法:\Ios currentAdvice.adviceInstruction返回奇怪的结果,ios,skmaps,Ios,Skmaps,在IOS上,我使用委托方法:\ func routingService(routingService: SKRoutingService!, didChangeCurrentAdvice currentAdvice: SKRouteAdvice!, isLastAdvice: Bool) { print("adviceInstruction") print(currentAdvice.adviceInstruction) delegate?.didChangeCurren
func routingService(routingService: SKRoutingService!, didChangeCurrentAdvice currentAdvice: SKRouteAdvice!, isLastAdvice: Bool) {
print("adviceInstruction")
print(currentAdvice.adviceInstruction)
delegate?.didChangeCurrentAdvice(currentAdvice.adviceInstruction)
}
currentAdvice.adviceInstruction在模拟器模式下运行时,在列出距离时返回奇怪的指令,如:
in 200 50 yards turn right
我希望能够在我的应用程序中声明,你在哪里转弯以及转弯的距离。所以我希望在50码左右右转。还有其他方法吗?请参阅文章了解上下文
如果您想要“人类可读”的文本说明,请使用TTS选项提供音频建议:您是否检查了演示项目,您应该会找到一个示例:是的,我确实使用了示例代码来测试,这是我从中获得的,并使用了他们使用的委托方法