-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] ERROR
UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
?
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0x7257800'
今天新建立一个TableView的时候,偶然发现这样的错误,因为用的是XCode自己生成的代码,好奇怪,想了想到底是为什么呢?
看了下Documents,oh shit!我用的Base 是5.0SDK.
?
Available in iOS 6.0 and later.
遂改之:
UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
相关推荐
代码仅供参考,有问题可以 联系我
用UITableView实现一个小型微博的功能
提供一个TableView里cell圆角化的快捷方式和多种样式
IOS-UITableView(展开收起)效果
Xamarin.iOS-UITableView详细使用说明 欢迎关注 http://blog.csdn.net/u014220518/article/details/53608189
iOS-UITableView学习UITableView的使用
UITableView-Swift
UITableView也可以多列显示单元格了。看着UICollectionView有多列显示,所以就写了一个TableView的多列显示 github 网址:https://github.com/gdhGaoFei/TableViewMultipleColumns 欢迎大家一起学习 QQ:1043902770
项目讲解地址:http://blog.csdn.net/yixiangboy/article/details/51009010。 代码请到github上下载,有更新:https://github.com/yixiangboy/YX_UITableView_IN_UITableView。 如果对你有用,star一下吧。
列表的右侧字母索引和分组头部
在iOS开发的过程中,UITableview是使用频率很高的控件之一,今天写的优化方法不是关于性能优化方面的,主要从为Controller瘦身方面考虑的。在使用tableView的时候不可避免的要谈到tableView的delegate和dataSource两...
点击 TableView的某一行 实现TableViewcell 展开和收起。
给 UITableview 添加阴影和变现,并且阴影渐变等样式的设计
UITableView的索引简单使用 GitHub:https://github.com/Wzxhaha/WZXListDemo 简书:http://www.jianshu.com/p/f17878c48ae2
简单的多选
github地址:https://github.com/L2H/MulChooseDemo
点击一行展开或者收回(是否展开),内部列表点击收回。
简单的模拟QQ聊天界面