解决办法:在appdelegate 添加
if#available(iOS11.0, *) { UITableView.appearance().estimatedRowHeight = 0; UITableView.appearance().estimatedSectionFooterHeight = 0; UITableView.appearance().estimatedSectionHeaderHeight = 0; UITableView.appearance().contentInsetAdjustmentBehavior = .never }
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!