現象
一個分頁顯示的列表,每次上拉加載刷新tableView的時候頁面都會跳動一下,對比發現此問題是在iOS11之后會出現。
解決辦法
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
self. tableView.estimatedSectionHeaderHeight = 0;
這樣操作之后,每次上拉加載新數據時頁面不會再抖動,完美解決!
一個分頁顯示的列表,每次上拉加載刷新tableView的時候頁面都會跳動一下,對比發現此問題是在iOS11之后會出現。
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
self. tableView.estimatedSectionHeaderHeight = 0;
這樣操作之后,每次上拉加載新數據時頁面不會再抖動,完美解決!