UITableView刷新指定section、cell
2016-02-29 13:08
429 查看
UITableView有时候需要对特定的section或cell进行刷新,可以尝试以下方法:
//刷新特定section NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:7]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; //刷新特定cell NSIndexPath *indexPath=[NSIndexPath indexPathForRow:2 inSection:0]; [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
相关文章推荐
- 关于开源框架GPUImage 的简单说明
- UIKit框架(8)屏幕适配(一)
- UI控件常见的属性
- UINavigationController之Toolbar+ToolbarItems
- UE4的编译配置详解
- Android-性能优化、UI优化、代码优化(1)
- UE4自编译UE4Editor
- UIViewController中的loadView方法
- 16.UISegmentedControl
- iOS UISearchBar的背景框颜色适应
- 通过UIView 获取父UIviewConroller(通过子视图获取父控制器)
- Round two corners in UIView
- UIKit框架(UIButton父类等)
- 【POJ 3368】 Frequent values(RMQ)
- UITableView使用详解
- [Locked] Unique Word Abbreviation
- 48.Which two statements are true regarding indexes? (Choose two.)
- 自定义UINavigationItem的两种方法以及相应的隐藏方法
- UITableView介绍 之 基本使用
- iOS9 UIAlertController简单使用代码