I have 2 sections in my UITableView. I\'d like my first header to be nonexistant, no space, no nothing. The first cell touches the top of the screen. I\'d like a custom section
Look for the
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
method of UITableView
.
You can return 0;
for the first section.
Use this,
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
if (section == 0){
return 0;
}
//...
}