Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mamcx

macrumors regular
Original poster
Mar 13, 2008
210
28
I have 4 UITableView that share a lot of common functionality.

After build the first, I decide to put the common work in a superclass, then derive from it:
Code:
@interface ListController : UITableViewController 
	<UITableViewDelegate,UITableViewDataSource, UISearchBarDelegate> {

@interface CustomerListViewController : ListController{

And I left everything else as before. But when try to run it I get:

Code:
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "CustomerList" nib but didn't get a UITableView.

This is not a suported scenario?
 
Nope, I found my mistake: The superclass is a UITableViewController but the nib expext a UIViewController. I have search bar so can't be a direct descendant of UITableViewController.

And tahnk you. I forget connect the table too ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.