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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -