AppDelegate 添加
if #available(iOS 11.0, *) {
UITableView.appearance().estimatedRowHeight = 0;
UITableView.appearance().estimatedSectionFooterHeight = 0;
UITableView.appearance().estimatedSectionHeaderHeight = 0;
UITableView.appearance().contentInsetAdjustmentBehavior = .never
}
還有一種設(shè)置了 UITableView.appearance().contentInsetAdjustmentBehavior = .never 還是跳動(dòng)
這時(shí)候你在當(dāng)前界面可能設(shè)置的 estimatedRowHeight(預(yù)估高度太性胁酢)