0

My application is going to crash for a reason I don't know. I am getting an error like this:

" Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key viewController."

jscs
  • 63,694
  • 13
  • 151
  • 195
user900017
  • 5
  • 1
  • 2
  • 4
    Sorry to be completely discouraging, but, it's not "going to crash". It has *already crashed*. – BoltClock Aug 19 '11 at 11:19
  • 2
    One would think that `NSUnknownKeyException` is pretty clear? Your application is trying to set a value for an unknown key... Without seeing the code I doubt anybody will tell you more than that. – houbysoft Aug 19 '11 at 11:21
  • One thing to check is that you have no warnings in your nibs in interface builder. – ader Aug 19 '11 at 11:23
  • Post the copy of raised exception. – alloc_iNit Aug 19 '11 at 11:24
  • check for spelling mistake in classname when you are redirecting your viewcontroller to another view. – Baby Groot Aug 19 '11 at 12:06

1 Answers1

1

This erro mainly appears when the connections of the XIB's file's owner are broken. You check this in the connections tab of the file's owner. There will be little exclamation mark at the right.

Dries De Smet
  • 876
  • 8
  • 16