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.
Comments
Post a Comment