Swift and watchkit: pushControllerWithName not being called at all -
i have used pushcontrolledwithname method in swift/watchkit move interface controller, this:
self.pushcontrollerwithname("newinterfacecontroller", context: nil)
in of projects, when put in function (like user presses button) doesn't called @ all. no errors, if code isn't there @ all. if create new test project , try it works. baffled what's going on here.
example of happens:
@ibaction func button1action() { println("test") self.pushcontrollerwithname("newinterfacecontroller", context: nil) }
pressing button print "test" in console, doesn't try move new interface controller (with identifier "newinterfacecontroller") @ all.
i think you've figured out comments, page-based interfaces technically modals , not navigation-stack interfaces.
you can present modals anywhere, can push onto navigation stack non-modal.
Comments
Post a Comment