给tableview添加
tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;可以解决这个问题
本文介绍如何通过设置TableView的高度估算属性来解决UITableView显示不准确的问题。具体包括设置_tableView.estimatedRowHeight, _tableView.estimatedSectionHeaderHeight及_tableView.estimatedSectionFooterHeight为0的方法。
给tableview添加
tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;可以解决这个问题

被折叠的 条评论
为什么被折叠?