1,刷新方法
1.1刷新某个section中的row
[UIView performWithoutAnimation:^{
[m_tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:row inSection:1]] withRowAnimation:UITableViewRowAnimationNone];
}]. //这个动画可以解决刷新闪动的问题
1.2刷新某个section中的row(同样适用于只有一个section的情况)
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[m_tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
1.3刷新某个section
1.3.1
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[m_tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
1.3.2
[m_tableView reloadSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationNone];
2,刷新后滚到指定位置
[m_tableView reloadData];