iOS学习爬坑记录21:'-[UITableViewController loadView] loaded the "XXX" nib but didn't get a UITableView.'
2015-05-26 15:24
260 查看
这个问题是这么产生的,Xcode工程做到一半进行修改出现问题。本来,storyboard中有一个View controller,它的控制器是DetailViewController,继承自@interface DetailViewController : UIViewController,现在我改变了,在storyboard里View Controller中添加一个table view,然后修改DetailViewController继承@interface DetailViewController :
UITableViewController,然后添加一些必要的代码运行,报错如下:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "4Kh-Te-V59-view-z5E-sD-s1e" nib but didn't get a UITableView.'
我始终觉得问题出在Storyboard中没有使用配套的Table View Controller,最终点开Show Document Outline对比两者发现Table View Controller是没有view的,而之前我操作的View Controller中有一个View,然后我的table view是直接覆盖在view之上的,删掉view,连好datasource和delegate,问题就解决了。小问题。以后还是要注意控制器和视图的配套使用。
UITableViewController,然后添加一些必要的代码运行,报错如下:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "4Kh-Te-V59-view-z5E-sD-s1e" nib but didn't get a UITableView.'
我始终觉得问题出在Storyboard中没有使用配套的Table View Controller,最终点开Show Document Outline对比两者发现Table View Controller是没有view的,而之前我操作的View Controller中有一个View,然后我的table view是直接覆盖在view之上的,删掉view,连好datasource和delegate,问题就解决了。小问题。以后还是要注意控制器和视图的配套使用。
相关文章推荐
- loaded the "xxxViewController" nib but the view outlet was not set.'
- iOS the file "xxx.app" couldn't be opened because you don't have permission to view it.
- iOS开发出现的错误:loaded the "VCRoot" nib but the view outlet was not set.'
- iOS运行虚拟器时出现The file "XXX" couldn't be opened because you don't have permission to view it的解决办法
- reason: '-[UITableViewController loadView] loaded the "GWHomeViewController" nib but didn't get a UITableView.
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- ios:程序打包时出现The identity 'iPhone Distribution:XXX doesn't match any valid的解决方法
- -[UIViewController _loadViewFromNibNamed:bundle:] loaded the "xxx" nib but the view outlet was not s
- loaded the "xxx" nib but the view outlet was not set.
- loaded the "XXXView" nib but the view outlet was not set 解决方案
- iOS学习笔记13-iOS 'The sandbox is not sync with the Podfile.lock'问题解决
- [UIViewController _loadViewFromNibNamed:bundle:] loaded the "XXX.xib" nib but the view outlet was no
- ios:程序打包时出现The identity 'iPhone Distribution:XXX doesn't match any valid的解决方法
- Xcode报错"The working copy 'xxx' has uncommitted changes"解决方案
- Xcode报错"The working copy 'xxx' has uncommitted changes"解决方案
- UIViewController _loadViewFromNibNamed:bundle:] loaded the "loc" nib but the view outlet was not set
- '-[UITableViewController loadView] loaded the "XXX" nib but didn't get a UITableView.'
- IOS-问题:xib关联问题[UIViewController _loadViewFromNibNamed:bundle:] loaded the "FirstViewController" nib but the view outlet was not set.
- loaded the "FirstViewController" nib but the view outlet was not set.'
- iOS ERROR ITMS-9000: "Missing or invalid signature. The bundle 'com.google.GPPSignIn3PResources' at