0

The 2 rows on top (Monthly, Annual) are a different section than the 3rd row at the bottom (Lifetime). I want to remove the space that is above the Lifetime row in between the sections. I tried changing the header height to 1.0 in the heightForHeaderInSection method but it didn't seem to work.

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    CGFloat headerHeight = 0.0;

    switch (section) {
        case 0:
            headerHeight = [self featuredProductHeaderView].frame.size.height;
            break;
        case 1: {
            if (_groupOneSectionTitle) {
                headerHeight = 1.0;
            }
        }

https://i.stack.imgur.com/XQoQj.png

rmaddy
  • 314,917
  • 42
  • 532
  • 579
MrDevRI
  • 233
  • 2
  • 11

1 Answers1

0

You need to set the footer height as well, and make sure you are not returning a title for header/footer nor are you returning a view for header/footer.

dtrotzjr
  • 928
  • 5
  • 18