adit
adit

Reputation: 33674

key value coding compliant error

I am trying to rewrite several parts of the code so that it is all programatically, without using a nib file. However after doing so I got the error:

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<CvoreAppDelegate 0x503f380> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key rootViewController.'
*** Call stack at first throw:

This is actually called even before the applicationDidFinishLaunching is called. Why is this? And how do I resolve this?

Upvotes: 1

Views: 367

Answers (1)

Yuji
Yuji

Reputation: 34195

I guess you still have a nib file in your project, which has an outlet connection to rootViewController. Remove the connection.

Upvotes: 1

Related Questions