How can I manually switch between UIViewControllers in storyboard?

后端 未结 4 2315
你的背包
你的背包 2020-12-01 03:00

All I need is to view a UIView controller in same storyboard file manually with code. I use storyboard to make all forms and connections. My application starts

4条回答
  •  情歌与酒
    2020-12-01 03:50

    You mentioned in a comment that you're using UIStoryboard. Are you aware of UIStoryboardSegue? All you have to do it control-drag from the button to the next view controller to establish a segue. Then you can choose the type of transition. Be aware that your view controllers need to be part of a UINavigationController in the storyboard to perform a "Push" animation.

提交回复
热议问题