2
在iOS上,我使用的委托方法:\currentAdvice.adviceInstruction返回奇怪的结果
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码的东西右转。有没有另外一种方法呢?
你检查过演示项目,还有,你应该找到一个例子:http://developer.skobbler.com/支持#下载 – SylviA
是的,我确实使用了示例代码来测试它从哪里得到,并使用它们使用的委托方法 – Doz