Question

got a default grouped style table like left screenshot in below, but it looks having different height of section header, the top first is 69 px measured, while those rest are 40 px.

Why? Are they supposed to be same height, aren't they?

So I'd like to make them even by method of tableView:heightForHeaderInSection:, return 40

But.....it looks more worse! It amplifies heights like below middle one, even if putting section title on...like below right pic.

enter image description here

I just wanna have same height of section header. How to make it work?

No correct solution

OTHER TIPS

Yea this is strange. I was able to make them even by adjusting the height of the section footers instead:

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    return 24;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top