I have a UITableView where in some instances, certain sections have zero rows. My goal is that when this is true, I don\'t want any wasted space in the table view, it should
Actually, with me it is happening other way round. I have assigned section header to be 10 in xib, but for the first section, I want a header of size header. I am using this method in my UITableViewCotroller
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if(indexPath.section==0)
return 125;
return tableView.rowHeight;
}
But the section header heights are not changed, even though the method is getting called.