swift - Hierarchical Nav just to Main Controller in Apple WatchKit 2 -


i building app moves between set of controllers using:

self.pushcontrollerwithname("scene a", context: nil) 

calling create ability @ top ideal e.g. main scene -> scene -> scene b -> scene c, how can pop whole stack main scene scene c in "pop beginning" type call? function can see goes backwards 1 step.

self.popcontroller() 

there

self.poptorootcontroller() 

discussion use method return interface initial configuration. might can reset navigation hierarchy initial state before pushing 1 or more different interface controllers onto navigation stack.

always call method watchkit extension’s main thread.

availability available in ios 8.2 , later.

reference document


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -