tableview数据源增删,刷新出错问题
来源:互联网 发布:南昌重点高中知乎 编辑:程序博客网 时间:2024/04/27 22:41
*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1914.84/UITableView.m:1037
2012-05-15 22:01:07.800 T_QQList[3933:f803] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (2) must be equal to the number of rows contained in that section before the update (2), plus or minus the number of rows inserted or deleted from that section (0 inserted, 2 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
2012-05-15 22:01:07.800 T_QQList[3933:f803] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (2) must be equal to the number of rows contained in that section before the update (2), plus or minus the number of rows inserted or deleted from that section (0 inserted, 2 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
是数据源的错误,在列表执行deleteRowsAtIndexPaths时候要求numberOfRowsInSection动态执行,如果定死了的话,则在执行deleteRowsAtIndexPaths的时候还是会返回2行,与删除发生了冲突,报错,所以要动态当没有展开的时候要返回0,展开要为[xxx count].
每次要增删或刷新列表数据源时,要注意改变后的numberOfRowsInSection是否要动态改变.
- tableview数据源增删,刷新出错问题
- TableView的刷新问题(2种方法
- ECO数据源使用REPEATER控件出错问题
- tableView刷新
- tableview刷新
- RecyclerView刷新数据源闪屏问题
- tableview 绑定数据源
- TableView 表单 数据源连接
- TableView 的reload 时页面出错 TableViewCell 的drawRect 问题
- tableView的刷新,cell重用失败的问题
- iOS9.0以上tableView reload刷新界面展示问题
- 解决TableView刷新指定行时闪烁的问题
- iOS tableView上刷新显示下载进度的问题
- vs选择数据源时sql语句出错问题
- NSFetchedResultsController更新tableview出错
- 解决VFP中表格控件Grid的数据源刷新问题
- UITableView刷新某一行,改变数据源的问题
- tableview下拉刷新
- oracle 多个表 join 的先后顺序
- java native关键字
- jquery ajax 在ie下面没有调用的原因
- 把包含相应字符串的文件拷贝到其他目录
- 打开word后输入法不能自由切换的问题
- tableview数据源增删,刷新出错问题
- 保存文件时使其自动用不同的文件名保存
- 网卡混杂模式的检测
- 【技术】基于GPRS无线网络的嵌入式远程车载监测系统[图]
- Linux下的压缩解压缩命令详解
- Discuz!X 插件制作教程( 网站基本数据)
- PCB的GERBER的各层(半原创)
- Mac下Android eclipse开发环境搭建
- 多线程和锁