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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -