先設置這三個屬性~bash
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
_tableView.estimatedRowHeight = 0;
複製代碼
刷新代碼寫成這樣~spa
[UIView performWithoutAnimation:^{
[self.tableView reloadRowAtIndexPath:indexPath withRowAnimation:UITableViewRowAnimationNone];
}];
複製代碼