heightForHeaderInSection
miaoruiyuan opened this issue · 3 comments
miaoruiyuan commented
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
not work ?????????
mats-claassen commented
That function should work (look here). What problem are you having?
19940524 commented
if (@available(iOS 11.0, *)) {
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
}
-
(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
return 10;
} -
(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
return [UIView new];
}
miaoruiyuan commented
@19940524 thx