loaded the "rootView" nib but didn't get a UITableView.'
I have developed a split view based applicaiton. And i am trying to add image to root view contr开发者_C百科oller.
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
You probably have to change the super-class of your rootViewController from UITableViewController
to UIViewController
.
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];
}
精彩评论