ios 解决bug(2)---invalid number of rows in section 0. The number of rows contained。。。
来源:互联网 发布:西安定家小酥肉淘宝店 编辑:程序博客网 时间:2024/06/11 13:08
在做UItableview的删除时,报错原因如下
invalid number of rows in section 0. The number of rows contained in an existing section after the update (8) must be equal to the number of rows contained in that section before the update (8), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
检查后是由于删除section时多写了两个section删除语句,导致section的索引出错。
解决办法,将其中的一个删除语句注释掉就行
[tableView deleteSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationLeft];
0 0
- ios 解决bug(2)---invalid number of rows in section 0. The number of rows contained。。。
- Invalid update: invalid number of rows in section 0. The number of rows contained in an ....
- iOS开发bug消灭之:Invalid update: invalid number of rows in section 0.
- 删除tableview的section遇到crash:The number of rows contained in an existing section after the update
- IOS常见bug.001—'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in
- 一个奇葩错误:Invalid update: invalid number of rows in section 0
- 一个奇葩错误:Invalid update: invalid number of rows in section 0
- IOS删除tableview'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in
- 'Invalid update: invalid number of sections. The number of sections contained in the table view aft
- Deleting large number of rows
- quick count the number of the rows in a big table
- Update large number of rows in a table [ID 268395.1]
- Applet属性 HTML Number Of Rows
- Game of the Rows
- Game of the Rows
- jxl.write.biff.RowsExceededException: The maximum number of rows permitted on a worksheet been excee
- jxl.write.biff.RowsExceededException: The maximum number of rows permitted on a worksheet been excee
- UITableView(Managing the Reordering of Rows)
- MySQL当前时间获取、转换
- mac 怎样播放mkv格式的视频,一个很巧妙的方式!
- 时间戳 相关问题
- 前端自动化构建工具gulp
- 1.24.2版本busybox扩充命令及函数集讲解||扩充applet命令
- ios 解决bug(2)---invalid number of rows in section 0. The number of rows contained。。。
- 【计算机图形学】奇偶规则和非零环绕树规则
- WPF 依赖属性,用户控件依赖属性(DependencyProperty 依赖属性、GetValue() SetValue() CLR属性包装器、SetBinding 数据绑定)
- OpenGL -- 光照相关的一些常识 。。。
- poj 1523 SPF (tarjan)
- 【微信小程序开发•系列文章一】入门
- Spring整合SpringMVC
- Java链表
- 控件的frame的几种设置方式