2009-10-09 16:04:38.035 Green Splash Theme[2529:20b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[What am I missing?setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myWebView.'
Tried:
- Link the UIWebView's delegate to the file owner;
- Make the UIViewController a
as well. - Ah-ha! The class that was controlling the UIWebView was a sub-class of another class. In my call to instantiate my new UIWebView class, I used the parent class instead. Changing it to the more specific class made it work.
vcCtrl = [[ParentDialog alloc] initWithNibName:@"WebDialog" bundle:nil];
when it should have been:
vcCtrl = [[WebDialog alloc] initWithNibName:@"WebDialog" bundle:nil];
where WebDialog inherited from ParentDialog. Inheritance is a tricky little bugger if you're not paying attention.
No comments:
Post a Comment