Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSean Lee
5,196 PointsRibbit Messenger - Error when clicking 'SIGN UP'
hi, I created a button 'Sign Up' and linked an action when clicked to go to the Sign Up screen which i've named the class 'SignUpViewController'.
My app runs successfully, until when I click on 'Sign Up' to go to the sign up screen, my app crashes.
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0xb840550> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key email.
I double checked and tried debugging for a while and I'm stuck... Anyone have any guidance on what the following compiler message means?
1 Answer
Stone Preston
42,016 Pointswhat most likely happened was you added your email text field, which connected from your storyboard to your header file. Then probably changed the name of that connection. When you do that, you have to go into the connections inspector and remove the old connection or else you will get this error. just for future reference. if you see that error again check your connections inspector
Sean Lee
5,196 PointsSean Lee
5,196 PointsI actually created a new ViewController for the 'Sign Up' and started from scratch which did the trick.