title: Very strange UITableView tableFooterView behavior
body: <p>I'm trying to add a simple table-wide footer view from a nib to my UITableView, but for some reason the footer is showing up always one row too high, and the buttons are not responding at all to taps (in fact the touch actually goes right through to the cell behind the button):</p>
  
  <p><img src="https://i.stack.imgur.com/OQEO5.png" alt="enter image description here"></p>
  
  <p>I can't figure out why the footer isn't going in it's correct spot. I've accounted for its height explicitly in the size of the <code>UIPopoverController</code> it is contained within.</p>
  
  <p>Here's how I'm creating/adding the footer view:</p>
  
  <pre><code>self.tableFooterView = [[NSBundle mainBundle] loadNibNamed:@"ModifierFooterView" owner:self options:nil][0];
  self.tableView.tableFooterView = self.tableFooterView;
  </code></pre>
  
  <p><strong>Update:</strong> The buttons are bound to the bottom left and bottom right corners respectively:</p>
  
  <p><img src="https://i.stack.imgur.com/LN1qM.png" alt="enter image description here"></p>
  
  <p>Also for a clue I tried setting the entire background color of the footer view to bright green. As you can see from the previous screenshot it's not showing green anywhere.</p>
  
  <p><strong>Update 2:</strong> When logging the frame values of the footer view at the time I load it from the nib after seting it as the table's footer, it has the correct Y value that would place it right after the last row. The only slightly odd reading is the width is 768 instead of the width of the parent view.</p>
  
  <p><strong>Update 3:</strong> Turns out the issue is being caused by the loaded footer view somehow getting its frame height set to 0 somewhere. I still haven't figured out where/why this is happening, but if I explicitly set it back to 50 when the view is about to appear, things work properly so it's no longer a major issue. However, if anyone has insight on why this is happening, do please post the answer.</p>