Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IBAction Button “Unrecognized Selector Sent to Instance” Error

Tags:

xcode

iphone

ios6

I spent a while searching for the answer for this question on google and managed to stumble across the answer myself and thought I would share it.

I was getting the “Unrecognized Selector Sent to Instance” Error. I traced it to my button.

What I had done with out realising is assigned two methods to a button. I had made a method and linked it to the button. I then deleted that method made another one and linked it to the button. I didnt realise that the button was still linked and looking to run the old method that was no longer there.

like image 837
Will Avatar asked Mar 14 '26 12:03

Will


1 Answers

Just go to you xib, select button and then in connectionInspector (cmd + option + 6) delete your previous connection.

like image 89
Rajneesh071 Avatar answered Mar 16 '26 02:03

Rajneesh071



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!