Monday, November 9, 2009

Regarding the Tab Bar control

When adding new tabs and populating the data from another nib view, two things need to be set:

1) In the actual nib view, you need to set the class to the controller, as you would expect.
2) You also need to do the same thing for the view that is listed under the tab controller (once for each tab).

Otherwise you will get a crash if you try to access anything in that particular tab:

'[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key webView.'

No comments: