'Receiver () has no segue with identifier 'addSegue'

后端 未结 4 1698
离开以前
离开以前 2020-11-27 08:31

I have a navigation controller that has a segue links between them called \"addSegue\". When I click on the tableView cell though the app crashes and I get the

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 08:57

    Hard to say for sure, but some other people have had similar problems:

    • In this question, the asker instantiated the storyboard with init instead of instantiateViewControllerWithIdentifier so the segue wasn't set up properly.

    • In this question, it was just something weird going on internally with xcode and the simulator, and running Product->Clean helped.

    • And of course, it's possible the segue name in the code doesn't match the segue name on the Storybord, but I'm guessing you've checked that a lot of times already!

提交回复
热议问题