troubleshooting Question

Error: unrecognized selector

Avatar of mmsi
mmsi asked on
iOSSwift Programming
5 Comments1 Solution591 ViewsLast Modified:
I'm taking a course online, and working through my very first IOS project.

Topic: Buttons and IBaction

when stepping through the project to create an IBaction for my button. I notice the code in the training video was different than the code my xcode generated when dragging a button from the storyboard to the viewcontroller.

So I deleted the code that I generated from the veiwcontroller.h and .m file and started the process over again.  

Ever since I deleted the code,  the program will not work.  In the simulator when I click my button i get an error.

I tried doing a clean build (command-option-shift-k) that did not work.  I deleted the code again, and ran it through the simulator and when I click the button it still crashes.

I know if I delete the project and start over it would work.  But I am more interested in finding what went wrong and how can I fix this solution in the future.

I attached the error message.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros