title: tableview:heightForRowAtIndexPath: Incorrect reporting content view size with AutoLayout
body: <p>I have a <code>UITableViewCell</code> with a custom label using AutoLayout. It's constraints are set with a constant leading, trailing, bottom, and top space to the content view.  The table view controller that these cells appear in is inside a <code>UISplitViewController</code>.  When the table view is loaded, I calculate the height of the cell using the following code:</p>
  
  <pre><code>CGSize size = [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize];
  CGFloat height = size.height;
  </code></pre>
  
  <p>In portrait this allows me to properly display the cell.  Here is a screenshot of part of the cell:</p>
  
  <p><img src="https://i.stack.imgur.com/Cciuf.png" alt="enter image description here"></p>
  
  <p>However, when I rotate the iPad into landscape, it is not calculating the correct size and end up with too much padding:</p>
  
  <p><img src="https://i.stack.imgur.com/29mTB.png" alt="enter image description here"></p>
  
  <p>Setting a breakpoint when the <code>tableview:heightForRowAtIndexPath:</code> is called when rotated the size of the content view is not being reported properly.  In fact it is reporting the old, narrower size of the table view.</p>
  
  <p><strong>How do I get my cells to resize appropriately with <code>UISplitViewController</code> on iPad?</strong></p>