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

后端 未结 11 687

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:09

    I had the same problem as you had.

    My problem was that I was calling the identifier of a segue that wasn't accessible from within the class I was calling the segue from. I solved it by adding another segue directly to the view from the ViewController that had access to the class I was working in. Hope this helps.

提交回复
热议问题