No index path for table cell being reused 这个问题
来源:互联网 发布:误清空回收站恢复软件 编辑:程序博客网 时间:2024/05/19 00:36
问题原因是:我用nib自定义了一个cell。作为我的tableFootView.当然在我执行下面的这段代码的时候,tableFootView 的显示没有任何问题。委托也能正常执行。
footCell = [[NSBundle mainBundle] loadNibNamed:@"RRTableFootBtnCell" owner:self options:nil][0]; self.tableView.tableFooterView = footCell; footCell.delegate = self;
但是:当我有数据需要更新cell的时候,当我要执行下面的代码的时候,标题的error就出现了。而且我的tableFootView 也同时消失了。
[self.tableView beginUpdates]; [self.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationAutomatic]; [self.tableView endUpdates];
我在stackoverflow上找到了类似的问题。他时把section view作为cell导致的题目所述错误。
解决方案其实很简单:
self.tableView.tableFooterView = footCell.contentView;
0 0
- No index path for table cell being reused 这个问题
- cell for row index
- UICollectionView recieved layout attributes for a cell with an index path that does not exist 解决办法
- Query index for a table
- 解决django的这个问题:Exception Value: no such table: blogango_blog
- No action instance for path
- struts No action instance for path 异常
- No input attribute for mapping path
- No input attribute for mapping path
- Table index
- display table table-cell
- UICollectionViewFlowLayout has cached frame mismatch for index path
- Error 3724:Cannot drop the table 'object_name' because it is being used for replication.
- Error 3724:Cannot drop the table 'object_name' because it is being used for replication.
- GAE for Java exception: no matching index found.
- Activity result no fragment exists for index:0x10003
- mongodb too much data for sort() with no index
- Fragment no longer exists for key f0: index 0
- 程序从后台到前台,内存被回收导致的空现象
- STM32驱动DP83848注意事项
- 杂言·二
- Android 异步加载解决方案
- 如何将table表中的数据导出excel表
- No index path for table cell being reused 这个问题
- java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)错误原因
- ARM V8 Fast Models 安装和使用
- <二> cocos2dx常见49种Action
- android点击和滑动事件的处理
- 写给c++初学者 之二
- 《编程之美》——从无头单链表中删除节点
- 与电脑处于同一局域网下的手机访问电脑网站
- Android开发之EditText输入框内容变成黑色