加载了“rootView” nib但没有获得UITableView。 [英] loaded the "rootView" nib but didn't get a UITableView.'

查看:111
本文介绍了加载了“rootView” nib但没有获得UITableView。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了基于拆分视图的应用程序。我正在尝试将图像添加到根视图控制器。

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

为此我手动创建了RootView.xib并在MainWindow.xib中我使用此xib加载了rootViewController。但是当我尝试构建这个时,我得到了这个错误。

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

推荐答案

您可能需要将rootViewController的超类从 UITableViewController 更改为 UIViewController

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

这篇关于加载了“rootView” nib但没有获得UITableView。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆