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 trial

iOS

Bug in my code

Hi Please can anyone tell me why I am getting this errror ? app due to uncaught exception 'NSUnknownKeyException', reason: '[<SignUpViewController 0x98c6780> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key email.'

5 Answers

It would help if you post the code.

(Use the Markdown CheatSheet to format)

it most likely isnt code thats causing the error. usually this happens when you change the name of an outlet after connecting it in storyboard.

you most likely connected your email outlet to your header from storyboard then changed the name of it or something. to fix it, go to your view controller and on the right side of xcode in the utilities view select the outlets view (looks like an arrow within a circle) which will show you all the outlets connected to your storyboard. You should have an outlet with an exclamation point beside the name. click the x to delete it. Depending on what you actually did to cause the error you may have to reconnect your email field again.

hey guys.. I am currently checking thru the code .. some hints are helpful. marsha grasett please have a look @ the code when you get a chance. Stone Preston ..thanks looking into that https://www.dropbox.com/s/sso6hzfoiuwje6t/guestmanagerios.zip

@Stone Preston.. checked for what you mentioned.. I didn't find the exclamation mark.

Perhaps go to - This is an http://stackoverflow.com/ they have have a lot of answers on similar.