ios - How to access Apple WatchKit WKInterfaceController list -


in watch extension code trying prevent display of second interface controller in scenarios. solution requires looking through list of active view controllers.

does know how list of active interface controllers? can in ios using self.navigationcontroller.viewcontrollers find no navigation controller in watchkit.

i have read through apple watch programming guide number of times don't address this. since can push & pop interface controllers, there must list kept os suspect there no programming access list.

because can pass valid context , access in awakewithcontext:, i've used technique of bundling reference presenting view controller along additional context in watchkit app. not allow build-up list of presented interface controllers, allows things assign delegates, inform controllers of interesting events, etc. i've published jbinterfacecontroller project on github: https://github.com/mikeswanson/jbinterfacecontroller


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -