14 Replies Latest reply: Jan 25, 2010 6:34 AM by Hopka
BeSharp Level 1 Level 1 (15 points)
I hope somebody can help me, I'm totally lost on this:

I've used IB to create a simple and basic view. I've set the File's Owner Identity to my ViewControllers class. My ViewController subclasses UIViewController. I've connected File's Owner view to the View created with IB.

When I launch the application crashes with:

* Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x44a000> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'

I believe what this means is that the class (my ViewController) has no property for "view", so when the IB create view awakes it cannot connect to the ViewController's view property.

If I delete the connection from the actual View to File's Onwer view I don't get the exception. However, I do need programmatic access to the View.

Can anybody help? I don't know what else I could have forgotten. As far as I know I don't have to synthesize the view property or anything, I don't even have to create an IBOutlet as all of that is inherited from UIViewController.

Please help.

iMac, Mac OS X (10.5.4), iPhone 2.1