You should either use this by returning the correct number of partitions:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
Or this returning CGFLOAT_MIN if there are no lines in the corresponding section:
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
Hope this helps.
Tom
source share