Search code examples
iphoneuitableviewfootermargins

Problems with a footer in a grouped uitableview


I have a grouped UITableView with some sections (with an header title). I want to add a footer to the first section, so I use

- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {

   switch (section) {
    case 0:
        return @"some lines of text...........bla bla bla bla bla etc etc");
        break;
    default:
        return nil;
        break;
    }
}

I have one problem:

  1. the distance between the footer end and the title of the next section is quite big. I don't know why.

Any suggestions?


Solution

  • You can change the footer height programmatically or using interface builder.