I have a UITableView inside of a View created from a NIB. the table has one section containing 6 rows and 1 footer. when i use:
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 80;
}
to return the height of the footer, which is being loaded from the same NIB. the UITableViewCell in the nib has a height of 80. the UITableViewCells are assigned using this code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.section == 0){ if (indexPath.row == 0){ return companyCell; }
if (indexPath.row == 1){ return firstNameCell; } if (indexPath.row == 2){ return lastNameCell; } if (indexPath.row == 3){ return emailCell; } if (indexPath.row == 4){ return passwordCell; } if (indexPath.row == 5){ return passwordConfirmCell; } }
return passwordConfirmCell;
}
i get a white line at the bottom of my table like the image at http://swnsn.com/white.png
if i return a footer height of 79, or 81, the white line goes away and the UITableViewCell scales to the width of the window
any thoughts?