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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -