今天遇到一個問題,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加初始值。