title: tableFooterView not aligning itself properly at the bottom of the table
body: <p>I'm experiencing a strange behavior with <code>UITableView</code>. I've setup a <code>UIViewController</code> with a <code>UITableView</code>. <code>UITableView</code> contains a <code>tableHeaderView</code>, <code>tableFooterView</code>, a section footer view, and a couple of <code>UITableViewCell</code>s with dynamic heights.</p>
  
  <p>The problem is that the <code>tableFooterView</code> appears somewhere in the middle of the table (hovering over the cell), instead of aligning itself at the bottom of the table's content. Apparently, table's <code>contentSize</code> property is also returning incorrect content size (specifically the height).</p>
  
  <p>The custom section footer view, however, is appearing in the right place (and below the actual <code>tableFooterView</code> -- which is hovering in the middle of the table).</p>
  
  <p>Any ideas what's going on?</p>
  
  <p>Note: My custom table-view (with dynamic height handing using Auto Layouts) is showing a "Ambiguous Layout: 2 views are vertically ambiguous." warning, but it's resizing correctly at run-time. </p>
  
  <p>The table setup is pretty simple:</p>
  
  <pre><code>// Set table header/footer view
  self.myTableView.tableHeaderView = self.myTableHeaderView;
  self.mainTableView.tableFooterView = self.myTableFooterView;
  
  // Table delegate methods
  - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
      return [self heightForCellAtIndexPath:indexPath];
  }
  
  - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath {
      return [MyCustomCell defaultHeight];
  }
  
  - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
  
      if (section == 0) {
          return self.mySectionFooterView;
      }
  
      return [UIView new];
  }
  
  - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
  
      if (section == 0) {
          return [self heightForSectionFooterView];
      }
  
      return 0.01f;
  }
  </code></pre>