swift - Use menu item for open another interface controller -


i'm trying add possibility use force touch opening interface controller on apple watch. possible use menu object through menu item launching interface controller? , if yes, how can i? thank you!

yes, possible. need create ibaction menu item , call desired navigation function inside ibaction. show code using presentcontroller, can use other available navigation function watchkit.

@ibaction func presentotherinterfacecontroller() {     self.presentcontroller(withname: "myotherinterfacecontroller", context: nil) } 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -