PDA

View Full Version : Any way to access SKRouteState?



peyesdev
14.03.2015, 12:01
:confused: QUERY

I have noticed that since SDK v.2.4.0 was released that the following delegate method is no longer called and in fact it is no longer defined in the SKNavigationDelegate.h file:

routingService:didChangeFirstVisualAdvice:withSeco ndVisualAdvice:lastAdvice:routeState:

There are no current delegate methods that pass an SKRouteState object and I need the information within this to access SKCrossingDescriptor as I manually construct audio advices from this.

Is there any way of getting SKRouteState now?

Thank you for any help, in advance.

peyesdev
14.03.2015, 16:15
;) SOLVED

I found out that SKCrossingDescriptor is now passed from the new method:

didChangeFirstVisualAdvice:withSecondVisualAdvice: lastAdvice:currentAdvice:nextAdvice:secondAdvice:

And referred to from within an SKRouteAdvice object.