iOS 解決UITabelView刷新閃動

先設置這三個屬性~bash

_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
_tableView.estimatedRowHeight = 0;
複製代碼

刷新代碼寫成這樣~spa

[UIView performWithoutAnimation:^{
    [self.tableView reloadRowAtIndexPath:indexPath withRowAnimation:UITableViewRowAnimationNone];
}];
複製代碼
相關文章
相關標籤/搜索