0

My Segue doesn't work for some reason. Please take a look:

I have set the ID for


I have set the ID for the segue, and invoked the correct method. Why doesn't it work? My app crashes when I click on the button with the following exception thrown:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver () has no segue with identifier 'MapDetails''

Krunal
  • 77,632
  • 48
  • 245
  • 261
konyv12
  • 716
  • 2
  • 8
  • 23
  • You set the identifier name as MapDetails. And what is the IBAction name of the button? MapDetails? – El Tomato Mar 21 '17 at 08:50
  • I thought the name of the button doesn't matter? – konyv12 Mar 21 '17 at 08:53
  • You set the identifier name as MapDetails. - that's what I had to do, no? – konyv12 Mar 21 '17 at 08:54
  • http://stackoverflow.com/questions/11874200/nsinvalidargumentexception-receiver-has-no-segue-with-identifier have a look at this. – Forte Zhu Mar 21 '17 at 08:55
  • @konyv12 Will you accept some random selected answer just to get it over with, when people spend their free time help you out with the solution like you did with your last question? –  Mar 21 '17 at 08:59
  • @Sneak I don't know what you are talking about, that was the correct answer for my question... Anyway, Product->Clean didn't work? – konyv12 Mar 21 '17 at 09:02
  • @konyv12 Look at this thread http://stackoverflow.com/questions/36100246/receiver-has-no-segue-with-identifier-secondviewcontrollersegue it wasnt me downvoting this question btw. However, there are many threads simliar like this one. Let me know if it doesnt solve your problems I can look into it. –  Mar 21 '17 at 09:04
  • Please share full screen shot of your storyboard, Do you have set Navigation controller in root of this segue Source View controller? – Krunal Mar 21 '17 at 09:05
  • I am not sure, that this view controller on left is `Receiver`. May be `Sender`? – Cy-4AH Mar 21 '17 at 09:10
  • http://stackoverflow.com/a/41887007/5461400 – Harshal Valanda Mar 21 '17 at 09:24
  • 1
    I think it was that I set Storyboard ID's for different views within the class. It works now thank u everyone – konyv12 Mar 21 '17 at 09:35

1 Answers1

0

Select the segue and be sure you named it right

Select the segue and be sure you named it right

Vineet Rai
  • 80
  • 7