iOS-UITableView使用reloadSections刷新section问题
2014-12-22 11:57
344 查看
一般使用直接使用
#define Secons 5 行数
刷新某一行时会使那一行的section消失掉,老外给的解决方法是
就可以解决消失问题
#define Secons 5 行数
[famousTangTable reloadSections:[[NSIndexSet alloc] initWithIndex:Secons] withRowAnimation:UITableViewRowAnimationAutomatic];
刷新某一行时会使那一行的section消失掉,老外给的解决方法是
[CATransaction begin]; [CATransaction setCompletionBlock:^{ [famousTangTable reloadData]; }]; <span style="font-family: Arial, Helvetica, sans-serif;">[famousTangTable reloadSections:[[NSIndexSet alloc] initWithIndex:2] withRowAnimation:UITableViewRowAnimationAutomatic];</span> [CATransaction commit];
就可以解决消失问题
相关文章推荐
- iOS UITableView使用reloadData刷新后TableViewCell向上偏移问题
- ios UITableview 刷新某一个cell 或 section
- ios uitableview 刷新某一个cell 或 section
- iOS UITableview 刷新指定的某一个section或cell
- ios UITableview 刷新某一个cell 或 section
- iOS UITableView局部刷新 刷新单个cell或section
- ios UITableview 刷新某一个cell 或 section
- iOS使用XZMRefresh实现UITableView或UICollectionView横向刷新
- ios UITableview 刷新某一个cell 或 section
- ios UITableview 刷新某一个cell 或 section
- UITableview刷新cell或section iOS
- iOS使用UIPageViewController结合多个UITableView后点击状态栏无法让UITableView置顶问题
- iOS-分组UITableView删除崩溃问题(当删除section中最后一条数据崩溃的情况)
- ios uitableview 刷新某一个cell 或 section
- ios uitableview 刷新某一个cell 或 section
- ios-day06-04(UITableView的全局刷新和局部刷新、UIAlertView的使用)
- ios UITableview 刷新某一个cell 或 section
- 关于iOS中UITableView下拉距离短刷新没事,下拉距离长就会崩溃的问题解决方案
- ios UITableview 刷新某一个cell 或 section
- ios/swift UITableview 刷新某一个cell 或 section