UITableView没有正确绑定导致unrec…
来源:互联网 发布:java可以自学吗 编辑:程序博客网 时间:2024/05/16 12:02
错误1:[UIView tableView:numberOfRowsInSection:]: unrecognizedselector sent to instance 0x45fad0
错误2:setValue:forUndefinedKey:]: this class is not key valuecoding-compliant for the key tableView.'
What that is saying is that someone sent the‘tableView:numberOfRowsInSection:’ method to a UIView. And theUIView class does not recognize that method. My guess is that thedatasource for your tableView is connected to the view instead ofthe files owner.
查看xib的File's Owner点击弹出的框显示 ui之间的关系才比较清楚。
找到的原因是:self.viewController= [[CJQViewControlleralloc] initWithNibName:@"CJQ2ViewController"bundle:nil];
CJQ2ViewController.xib没有用CJQ2ViewController来初始化,并且CJQViewController里面没有实现tableView的相关方法。
0 0
- UITableView没有正确绑定导致unrec…
- Log4j没有正确配置导致项目没有发布成功
- awk 没有正确使用换行符导致的一个 BUG
- UISearchBar 和 UISearchDisplayController 没有在UITableView 的headerView 导致searchResultsTableView的frame出问题
- eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法
- eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法
- eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法
- eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法
- eclipse上一次没有正确关闭,导致启动的时候卡死异常解决办法解决办法
- eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法
- 微信开发者模式 绑定url token 您的服务器没有正确相应token验证
- IOS 下输入中文没有触发 keyup,导致绑定不了数据
- UITableView reloadData的正确方法
- UITableView reloadData的正确方法。
- UITableView reloadData的正确方法
- UITableView reloadData的正确方法
- UITableView 重用导致 的问题
- iOS NSString 没有去除首尾空格,换行符,空字符--导致UIlabel不能正确计算换行后的动态高度
- android 混淆 怎么去掉&…
- 家人定位朋友恋人情侣定位约会利器…
- ios bug系列
- ios unable to deq…
- Android延时执行调用的几种方法
- UITableView没有正确绑定导致unrec…
- Mybatis中传参包There is no getter for property named 'XXX' in 'class java.lang.String'
- 谈谈自定义Android界面切换效果库…
- ios随机数,and()、random()…
- IOS几种简单有效的数组排序方法
- 黑苹果上使用xcode 的reposit…
- ios开发--app 同时支持iphon…
- iOS分辨率
- iPhone开发笔记──手势操作:…