1. UITableView 的 heightForHeaderInSection
设置高度无效,且代理方法没有执行。
解决办法:iOS11默认开启Self-Sizing,关闭Self-Sizing即可。
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
复制代码
1. UITableView 的 heightForHeaderInSection
设置高度无效,且代理方法没有执行。
解决办法:iOS11默认开启Self-Sizing,关闭Self-Sizing即可。
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
复制代码
转载于:https://juejin.im/post/5a31cb4cf265da43305e78fc