'NSUnknownKeyException',
reason: '[<UIApplication 0xde7b110> setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key guessText.'
my app keeps crashing, why?
'NSUnknownKeyException',
reason: '[<UIApplication 0xde7b110> setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key guessText.'
my app keeps crashing, why?
While this can happen for lots of reasons, this error is most frequently seen when you have some view you've designed in Interface Builder that references a non-existent IBOutlet
, in your case one called guessText
. Perhaps you had one that you subsequently renamed or removed from your .h? Open up your NIB/storyboard in Interface Builder, and look at the outlets, and see if you can find the one that's referencing guessText
and fix that accordingly (either delete the outlet or create the IBOutlet
in your code).