iOS 解决UITabelView刷新闪动

999 阅读1分钟

先设置这三个属性~

_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
_tableView.estimatedRowHeight = 0;

刷新代码写成这样~

[UIView performWithoutAnimation:^{
    [self.tableView reloadRowAtIndexPath:indexPath withRowAnimation:UITableViewRowAnimationNone];
}];