有些時候用 reloadRows 刷新指定 cell 或者 reloadData 刷新整張表格時矾缓,會發(fā)生表格閃爍跳動的現(xiàn)象毯盈,即使你指定了 UITableViewRowAnimation = .none 也無濟于事宝剖,這時可以試試下面這種方法:
UIView.performWithoutAnimation {
tableView.reloadRows(at: [indexPath], with: UITableViewRowAnimation.none)
}