ios - currentAdvice.adviceInstruction 返回奇怪的结果
<p><p>在IOS上,我使用的是委托(delegate)方法:\</p>
<pre><code>func routingService(routingService: SKRoutingService!, didChangeCurrentAdvice currentAdvice: SKRouteAdvice!, isLastAdvice: Bool) {
print("adviceInstruction")
print(currentAdvice.adviceInstruction)
delegate?.didChangeCurrentAdvice(currentAdvice.adviceInstruction)
}
</code></pre>
<p>currentAdvice.adviceInstruction 在模拟器模式下运行时,在列出距离时返回奇怪的指令,例如:</p>
<pre><code>in 200 50yards turn right
</code></pre>
<p>我希望能够在我的应用中说明您要转向的位置和距离。所以我预计会在 50 码处右转。还有其他方法吗?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>见 <a href="http://sdkblog.skobbler.com/advisor-support-text-to-speech-scout-audio/" rel="noreferrer noopener nofollow">this</a>文章的上下文。</p>
<p>如果您想要“人类可读”的文本说明,请使用 TTS 选项获取音频建议:<a href="http://developer.skobbler.com/getting-started/ios#sec24" rel="noreferrer noopener nofollow">http://developer.skobbler.com/getting-started/ios#sec24</a> </p></p>
<p style="font-size: 20px;">关于ios - currentAdvice.adviceInstruction 返回奇怪的结果,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/33700936/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/33700936/
</a>
</p>
页:
[1]