<ObjectC>解决 Assertion failure in -[UITableView _endCellAnimationsWithContext:] 问题
来源:互联网 发布:网络歌手雷婷个人资料 编辑:程序博客网 时间:2024/06/05 01:13
找了几种方法
1,
[_tableView beginUpdates]; [_tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic]; [_tableView endUpdates];在delete之前和之后加上beginUpdates和endUpdate
事实证明对我没什么用!
2,
在删除之前先删除掉数据源中的数据
[self.datas removeObject:self.datas[indexPath.row]];[self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationBottom];ok了!
就是在调用deleteRowsAtIndexPaths:方法前,要确保数据为最新
阅读全文
0 0
- <ObjectC>解决 Assertion failure in -[UITableView _endCellAnimationsWithContext:] 问题
- *** Assertion failure in -[UITableView _endCellAnimationsWithContext:]
- Assertion failure in -[UITableView _endCellAnimationsWithContext:]---错误
- NSFetchedResultsController Assertion failure in -[UITableView _endCellAnimationsWithContext:]
- 删除cell 报错*** Assertion failure in -[UITableView _endCellAnimationsWithContext:]
- *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit
- 删除cell时 报错 Assertion failure in -[UITableView _endCellAnimationsWithContext:]
- *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/co
- *** Assertion failure in -[UITableView layoutSublayersOfLayer:]
- Assertion failure in -[UITableView layoutSublayersOfLayer:]
- iOS:编译问题 Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- iOS Assertion failure in -[UITableView _classicHeightForRowAtIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- windows文件鼠标右键添加工具快捷方式
- matlab中函数(四)--log、exp、prod、floor、ceil、fix、round
- 转载
- python3网络爬虫一《使用urllib.request发送请求》
- 【资源共享】RK3399《CPU-Freq开发指南 V1.0.1》
- <ObjectC>解决 Assertion failure in -[UITableView _endCellAnimationsWithContext:] 问题
- 链接-JS设置CSS样式几种方式
- Io学习优秀博客地址
- React return的写法
- 灵活构建和拼接Laravel的SQL语句
- 单例模式
- Apache与Nginx的区别
- 索引超出了数组界限(Microsoft.SqlServer.Smo)
- eclipse中Tomcat配置正确,web项目编译时出现404错误的解决办法。