Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios currentAdvice.adviceInstruction返回奇怪的结果_Ios_Skmaps - Fatal编程技术网

Ios currentAdvice.adviceInstruction返回奇怪的结果

Ios currentAdvice.adviceInstruction返回奇怪的结果,ios,skmaps,Ios,Skmaps,在IOS上,我使用委托方法:\ func routingService(routingService: SKRoutingService!, didChangeCurrentAdvice currentAdvice: SKRouteAdvice!, isLastAdvice: Bool) { print("adviceInstruction") print(currentAdvice.adviceInstruction) delegate?.didChangeCurren

在IOS上,我使用委托方法:\

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选项提供音频建议:

您是否检查了演示项目,您应该会找到一个示例:是的,我确实使用了示例代码来测试,这是我从中获得的,并使用了他们使用的委托方法