Reputation: 33674
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
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