I use the method as follows
I have just tried below lines of code, dynamically set the UITableViewHeaderFooterView height size.
self.tableView.estimatedSectionHeaderHeight = 100
self.tableView.sectionHeaderHeight = UITableViewAutomaticDimension
I have the following problems
In iOS9, iOS10 can run normally, and can display properly. But can not be displayed correctly in iOS8, and the following error is displayed:
My analysis is as follows:
From the error prompt, I can see that the problem is NSLayoutConstraint: 0x7f8498d7b890 _UITableViewHeaderFooterContentView: 0x7f8498cb9200.height == 0
But I have never made any Constraints to UITableViewHeaderFooterContentView
How should I fit iOS8?