There are some section in the table that does not contain any data and would like to hide that section.
How to do this?
Try like this:-
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { CGFloat headerHeight=10.f; if (section==0) { headerHeight=0.01f; } else { headerHeight=50.0f; } return headerHeight; }