tableview局部刷新

今天项目遇到一个tb局部刷新的功能,以前没用过这个,记录下来供学习。

 NSIndexPath *path = [NSIndexPath indexPathForRow:0 inSection:0];
    [_tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:path] withRowAnimation:UITableViewRowAnimationBottom];                  //对tableview局部进行刷新

评论

暂无评论