in this case, you can give tableview a bottom space of 0 for its superview, and it will work, I think, or you can do,
tableView.tableFooterView = UIView();
or you can do as below
The lower value should be 1.0.
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger )section { if(section == 0) { return 6; } else { return 1.0; } } - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger )section { return 5.0; } - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger )section { return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)]; } - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger )section { return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)]; }
Varsha shivhare
source share