Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loaded the "rootView" nib but didn't get a UITableView.'

Tags:

ios4

I have developed a split view based applicaiton. And i am trying to add image to root view controller.

For that i made RootView.xib manually and in MainWindow.xib I loaded rootViewController with this xib. But when i try building this i get this error.

Any help in this approach OR any other approach to add image to root view controller will be greatly apprecviated

like image 926
AmitMugal Avatar asked Nov 28 '22 10:11

AmitMugal


2 Answers

You probably have to change the super-class of your rootViewController from UITableViewController to UIViewController.

like image 103
Dominik Seibold Avatar answered Dec 06 '22 01:12

Dominik Seibold


If you subclass a UITableViewController on purpose, you need to change it's default view load behaviour just by overriding it's load view method:

- (void)loadView {
    [super loadView];
}
like image 42
der_michael Avatar answered Dec 06 '22 02:12

der_michael