刷新某row或某section
- (void)reloadRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
温馨提示:
可能会出现row突然乱动的现象(上滑)
NSArray*indexPathsForVisibleRows = [self.tableView visibleCells];
我们可以通过直接拿cell刷新
刷新某row或某section
- (void)reloadRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
温馨提示:
可能会出现row突然乱动的现象(上滑)
NSArray*indexPathsForVisibleRows = [self.tableView visibleCells];
我们可以通过直接拿cell刷新
本文标题:UITableView某row或某section刷新
本文链接:https://www.haomeiwen.com/subject/llcnzhtx.html
网友评论