2019-04-11ios使用上拉加载更多重复加载的问题
2019-04-11 本文已影响0人
渴望平静生活的上班族
self.tableView.estimatedRowHeight = 0
self.tableView.estimatedSectionHeaderHeight = 0
self.tableView.estimatedSectionFooterHeight = 0
添加以上三行再试试 问题大概就解决了
不行的话 再加上这行
//解决上拉重复加载问题
if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.never
} else {
tableView.translatesAutoresizingMaskIntoConstraints = false
}