刷新TabelView的方法

关于刷新TabelView的方法
1、尽量不要用[self.tableView reloadData];因为这个会全部刷新,会很费资源,只需要刷新需要刷新的某行或者多行就行了
代码:
// 刷新指定行
NSIndexPath *path = [NSIndexPath indexPathForRow:alertView.tag inSection:0];

// @[path]将需要刷新的行包装进一个数组,传给tableView

[self.heroTableView reloadRowsAtIndexPaths: withRowAnimation:UITableViewRowAnimationRight];

原文地址:https://www.cnblogs.com/lianpihou/p/3756133.html