xmartlabs/XLForm

heightForHeaderInSection

miaoruiyuan opened this issue · 3 comments

  • (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section

not work ?????????

That function should work (look here). What problem are you having?

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];
    }