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.