title: Change the footer size for only one section in the UITableView
body: <p>I have a grouped Static <code>UITableView</code> which 4 section. In all 4 sections, I have a header and only the last section has a footer (which is representing the version of the app). </p>
  
  <p>Because I've built up my <code>UITableViewController</code> using <code>Interface Builder</code> and <code>Storyboard</code>, I can set the size of the header and footer margins in the Inspectors and so I've set this to 10 for each. </p>
  
  <p>The problem I'm facing though is the fact that the UILabel that represents the Footer is cut off because of the footer size in the inspector. </p>
  
  <p>I'm using a custom label because I'm placing the footer title in the middle, making it white and changing the size of the font. </p>
  
  <p>Here's the code for that:</p>
  
  <pre><code>- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
  {
      if (section == 3)
      {
          CGRect screenRect = [[UIScreen mainScreen] applicationFrame];
  
          UIView* headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 80, screenRect.size.width, 44.0)];
  
          UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(0, 80, tableView.frame.size.width, 80.0)];
          label.textAlignment = NSTextAlignmentCenter;
          label.textColor = [UIColor whiteColor];
          NSString* currentAppVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
  
          label.text = [NSString stringWithFormat:@"Version: %@", currentAppVersion];
          label.font = [UIFont systemFontOfSize:14];
          [headerView addSubview:label];
  
          return label;
      }
      else
      {
          return nil;
      }
  }
  </code></pre>
  
  <p>The problem is that if I increase the size of the footer margin in the Inspector, it increases it for every section and which then makes the gap between the sections much bigger. </p>
  
  <p>I just want to increase the footer of the last section so that the label is not obscured. </p>
  
  <p>I have also tried changing the UIView and UILabel values in the code above but to no luck. </p>
  
  <p>Any guidance on this would be really appreciated. </p>