> I have a TabBarController that has three tabs, and each view for these is > kept in its own nib. One of these views has a UITableView which has its > delegate and dataSource attached to the File's Owner. > > The nib also has TableCell objects which are returned from: > > - (UITableViewCell *)tableView:(UITableView *)tableView > cellForRowAtIndexPath:(NSIndexPath *)indexPath > > All is well when I load the view without the tab controller. > > When the TabController is used to manage the view however, I get a crash: > > iPhone Simulator 2.2 (77.4.9), iPhone OS 2.2.1 (5H11) > *** Terminating app due to uncaught exception 'NSUnknownKeyException', > reason: '[<UIViewController 0x525e10> setValue:forUndefinedKey:]: this class > is not key value coding-compliant for the key mySwitchCell.' > > > mySwitchCell is defined in the in the nib and of course works when the > TabController is not used. > > How can I use a TabController to manage a view that contains a TableView?
Just in case anyone else runs into this, I did figure it out... The Class of the target view has to be set in the tab as well as in the view's nib itself. T. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
