bug描述:在iOS11和12系统下,刷新tableview时,会出现向上偏移一大块的鬼畜现象。
解决方法:代码中添加以下三行代码即可
tableView.estimatedRowHeight = 0
tableView.estimatedSectionFooterHeight = 0
tableView.estimatedSectionHeaderHeight = 0
bug描述:在iOS11和12系统下,刷新tableview时,会出现向上偏移一大块的鬼畜现象。
解决方法:代码中添加以下三行代码即可
tableView.estimatedRowHeight = 0
tableView.estimatedSectionFooterHeight = 0
tableView.estimatedSectionHeaderHeight = 0