添加 SKViaPoint 时 SKMaps 崩溃 [英] SKMaps crashes when add SKViaPoint
问题描述
我正在使用 SKMaps 来模拟自定义路线.将一个点导航到另一个点效果很好,我的意思是仅使用 start 和 destination:
I'm using SKMaps to simulate custom routes. It was working fine with navigating a point to another point, I mean use start and destination only:
route.startCoordinate = CLLocationCoordinate2DMake(37.9667, 23.7167)
route.destinationCoordinate = CLLocationCoordinate2DMake(37.9677, 23.7567)
但是如果我添加 viaPoints 到路由,当我开始导航时应用程序会崩溃:
but if I add viaPoints to route, app will crash when I startNavigation:
route.startCoordinate = CLLocationCoordinate2DMake(37.9667, 23.7167)
route.viaPoints = [SKViaPoint(1, withCoordinate:CLLocationCoordinate2DMake(37.9672, 23.7367))]
route.destinationCoordinate = CLLocationCoordinate2DMake(37.9677, 23.7567)
这是我得到的唯一日志:
Here is the only log I got:
libc++abi.dylib: terminating with uncaught exception of type std::length_error: vector
如果有人以前看过或知道如何修复它,请帮助我.
If anyone saw it before or know how to fix it, please help me.
谢谢.
推荐答案
这是 2.5.1 中的一个错误,现在已修复.您可以从这里获取新版本:forum.skobbler.com/showthread.php/7315-SKViaPoint-crashes-FIXED
It was a bug in 2.5.1, that is fixed now. You can get the new build from here: forum.skobbler.com/showthread.php/7315-SKViaPoint-crashes-FIXED
这篇关于添加 SKViaPoint 时 SKMaps 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!