segue does not work in simple segue test

后端 未结 3 1705
暖寄归人
暖寄归人 2021-01-07 21:53

I have a weird problem. I have created 2 viewcontrollers in my storyboard: testSegueViewcontroller and nextPageViewController.
The testSegueViewcont

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 22:50

    With this approach you should use modal segues. Push segue is a part of UINavigationController transitions

    If you want to use push segue then you will need to put your testSegueViewcontroller into UINavigationController instance. This will allow the Push segue to work.

提交回复
热议问题