title: Has ambiguous scrollable content height error still persist after adding constraints
body: <p>This type of <a href="https://stackoverflow.com/q/24408256/1077789">question</a> has been asked before but here me out.</p>
  
  <p>I have a UIViewController with two container views both of which embeds a table view.</p>
  
  <p><a href="https://i.stack.imgur.com/jQSfa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jQSfa.png" alt="enter image description here"></a></p>
  
  <p>The top tableview is dynamic while the bottom one is static. And there is a textfield inside a cell in the bottom tableview. So I want to scroll everything up when you tap the textfield and the keyboard appears. To do that I have put both the container views inside a scrollview.</p>
  
  <p>I have the scrollview pinned to all four sides. And I have added leading, top, trailer constraints and also horizontal center constraint (I get a ambiguous scrollable content <em>width</em> error if not)  to the top container view. And for the bottom container view, I added leading, bottom, trailing constraints. And also a vertical space constraint between the two container views.</p>
  
  <p><a href="https://i.stack.imgur.com/hVzIR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hVzIR.png" alt="enter image description here"></a></p>
  
  <p>But I still get the ambiguous scrollable content height error. I found that the <a href="https://stackoverflow.com/a/24408315/1077789">answer</a> to this issue is to ensure that you have enough constraints from top to bottom and I seem to have all of them. I can't figure out why I have this problem still. This is what it looks like when I run the app.</p>
  
  <p><a href="https://i.stack.imgur.com/P6U2m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P6U2m.png" alt="enter image description here"></a></p>
  
  <p>Am I missing something else?</p>
  
  <p><a href="https://www.dropbox.com/s/3fuhfp88219yuqv/EmbeddedTableViews.zip?dl=0" rel="nofollow noreferrer">Dropbox</a> link to a demo Xcode project.</p>