如果Cell使用的是自适应高度,那么不要预置高度,下面的代码注掉
_tableView.estimatedRowHeight = 40;
同时添加以下代码
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
其他问题留言
如果Cell使用的是自适应高度,那么不要预置高度,下面的代码注掉
_tableView.estimatedRowHeight = 40;
同时添加以下代码
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
其他问题留言