title: UITableView dynamic content size height inside UIScrollView with AutoLayout
body: <p>I have a <code>UIScrollView</code>, inside this <code>UIScrollView</code> I have a <code>UIView</code> and inside the <code>UIView</code> I have some <code>UITextField's</code>, some <code>UILabel's</code> and at the bottom there is a <code>UITableView</code>.</p>
  
  <p>I want the <code>UITableView</code> to fit it's content height, the <code>UIView</code> to fit it's content height and the <code>UIScrollView</code> to fit it's content height.</p>
  
  <p>The <code>UITableView</code> height might change as I add / remove cells from it during usage.</p>
  
  <p>What is the best way to handle it using <strong><code>AutoLayout</code></strong>?</p>
  
  <pre><code>- UIViewController
  -- UIView
  --- UIScrollView
  ---- UIView
  ----- UILabel
  ----- UITextField
  ----- UITextView
  ----- UITableView (at the bottom of the superview)
  </code></pre>
  
  <p>or as in the xib:</p>
  
  <p><a href="https://i.stack.imgur.com/yhazL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yhazL.png" alt="enter image description here"></a></p>