UITabelView的局部刷新
1.
刷新整个tableView用[self.tableView reloadData];
2.
[self.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:(UITableViewRowAnimationMiddle)];
刷新点击的cell
3.
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:indexPath.section] withRowAnimation:(UITableViewRowAnimationMiddle)];
刷新分区下的cell
时间: 2024-09-18 12:13:33