NSInvalidArgumentException - receiver has no segue with identifier

前端 未结 8 1636
迷失自我
迷失自我 2020-11-29 07:32

I have been trying everything for hours, and nothing\'s worked. I am trying to segue between two view controllers, from one tableViewController to another tableViewControlle

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 07:58

    I had the same problem and struggled with it for hours. Stackmonster's answer solved my problem (rename the storyboard), but I didn't understand why it solved the problem.

    I found that when I changed an item on the storyboard (added a label or changed background colour) it was not reflected in the simulator - I wasn't using the storyboard that I could see in xcode, but an older version of the storyboard. I had to rename the storyboard in the project navigator and also rename it in the info.plist (in supporting files) and my label appeared, and the background colour applied, and the segue worked.

    I don't know why the storyboard changes weren't taking effect, but it caused me a huge amount of time to find. I've seen on the blogs that a lot of devs have the same problem.

提交回复
热议问题