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