segue does not work in simple segue test

后端 未结 3 1669
暖寄归人
暖寄归人 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:35

    Push segue is a part of navigationcontroller if your viewcontroller is embed with uinavigation controller then only you will able to push the controller to another view. If you don't want to add navigation controller then use modal transitions.

    0 讨论(0)
  • 2021-01-07 22:44

    You need to put the testSegueViewcontroller inside a UINavigationController.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题