title: UITableView, make footer stay at bottom of screen?
body: <p>I have a UITableView with a footer, filled with a tabBar in a custom view, done using the following code:</p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView
  heightForFooterInSection:(NSInteger)section {
      //differ between your sections or if you
      //have only on section return a static value
      return 49;
  }
  
  - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
  
      if(footerView == nil) {
          //allocate the view if it doesn't exist yet
          footerView  = [[UIView alloc] init];
          [footerView addSubview:self.tabBarView];
      }
  
      //return the view for the footer
      return footerView;
  }
  </code></pre>
  
  <p>Which is working lovely, apart from when the table has less rows than are needed to fill the screen, this causes the footer to move up the screen, as the table no longer creates empty rows, due to having a footer.</p>
  
  <p>So, does anyone know of a way to either lock the custom footer to the bottom of the screen, or, to make the tableView create empty rows as it used to do?</p>
  
  <p>Thanks!</p>
  
  <p>Gareth</p>