iOS 解决UITabelView刷新闪动

先设置这三个属性~bash

_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
_tableView.estimatedRowHeight = 0;
复制代码

刷新代码写成这样~spa

[UIView performWithoutAnimation:^{
    [self.tableView reloadRowAtIndexPath:indexPath withRowAnimation:UITableViewRowAnimationNone];
}];
复制代码
相关文章
相关标签/搜索