Reputation: 3
So i started with my app with 2 buttons in my calenderview : a day and a week button. Now i want to just use 1 button and dynamically change the name of it (that part works) I am using the weekbutton for that. But now I want to remove the day button. But i cant get it out of my program.
I tried first deleting the link in .xib Then i delete the button. Then i remove it from the .h file, and then from .m It always results in the same error :
* Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key dayButton.'
Cant see why i just cant remove the button...
Upvotes: 0
Views: 246
Reputation: 1919
You`ve deleted outlet from code .h/.m file, but somewhere in .xib something is still connected to deleted outlet. Recheck all connections in .xib file to be sure that they have appropriate declaration in .h file.
Upvotes: 1