NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController

后端 未结 11 689

so I\'m making an app with 5 view controllers, the first is embedded in a UINavigationController and the segue between the first 4 view controllers works fine. However intro

11条回答
  •  长情又很酷
    2020-12-07 18:20

    This is most likely because your push segue from the button or whatever is pointing to a view controller not the navigation view controller your view controller inherits. So, you have to point the segue to the navigation controller.

    Hope this helps.

提交回复
热议问题