Closed joelbanzatto closed 6 years ago
Unfortunately it seems like UITableView doesn’t handle automatic height calculation for table sections headers correctly and I haven’t managed to work out why yet.
It looks like the height of your header is fixed by the avatar image size anyway, so if you set the tableView sectionHeaderHeight to 80 instead of the estimatedSectionHeader height I think that will work.
@nicklockwood It works greatly fine if you use UIView instead the UITableViewHeaderFooterView.
Thanks for your reply!
@joelbanzatto ah right, I thought you were using it as a section header not a header for the whole table. UITableViewHeaderFooterView is only used for section headers.
Hello,
I am trying to put a Header View into TableView this way:
But the cells come underneath the header view (screenshot) what I am doing wrong?
Thanks!