在初始化tableView的代码里加上这三行代码
_tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
本文介绍如何通过设置estimatedRowHeight、estimatedSectionHeaderHeight及estimatedSectionFooterHeight为0来初始化UITableView,以实现更精确的表格视图布局。
在初始化tableView的代码里加上这三行代码
_tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;

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