我正在查看API,但我没有注意到任何委托方法
-didFinishLoadinRouteFromCache
所以,因此,我从缓存
加载路由后立即进行了缩放方法 [_mapViewHolder addSubview:[SKRoutingService sharedInstance].mapView];
[[SKRoutingService sharedInstance] clearCurrentRoutes];
[[SKRoutingService sharedInstance] loadRouteFromCache:[Constants shared].routeID];
[[SKRoutingService sharedInstance].mapView clearAllAnnotations];
[self createMapPins];
[[SKRoutingService sharedInstance] zoomToRouteWithInsets:UIEdgeInsetsZero];
[[SKRoutingService sharedInstance] zoomToRouteWithInsets:UIEdgeInsetsZero];
但是即使两次调用zoomToRouteWithInsets,我仍然可以看到整个路线。
为了实现从缓存加载的路由缩放,我应该调用其他方法吗?