今天遇到一个问题,UITableView 在reloadData或者reloadSection后,滑动变卡顿了,但是过了几秒后再滑动就正常了,一下方法能解决这个问题:
_tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
给tableview加初始值。
今天遇到一个问题,UITableView 在reloadData或者reloadSection后,滑动变卡顿了,但是过了几秒后再滑动就正常了,一下方法能解决这个问题:
_tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
给tableview加初始值。