title: How to resolve ambiguous layout?
body: <p>I want an iPad layout that that has two panels side by side, to fill the width of the screen and both are as tall as the screen. My attempts have led to as follows</p>
  
  <pre><code>self.view addConstraints:
      @"|[_sidePanel(300)]-1.0-[_mainPanel]|"
      @"V:|[_sidePanel]|"
      @"V:|[_mainPanel]|"
  </code></pre>
  
  <p>Inside __sidePanel_ I'm trying to create more constraints on child views.</p>
  
  <p>Note the _sidePanel view is a UIScrollView.</p>
  
  <p>I want to stack 2 views on top of one another in the side panel. <br/>
  So I add the following constraints to__sidePanel_.</p>
  
  <pre><code>_sidePanelView addConstraints:
      @"|[_top(300)]|"
      @"|[_bottom(300)]|"
      @"V:|[_top]-5.0-[_bottom]|"
  </code></pre>
  
  <p>It seems  I need to specify the width for these two views in order to avoid ambiguity.</p>
  
  <p>But I want the bottom view to fill the remaining space of __sidePanel_. <br/><br/>
  If I just pin __bottom_ to the bottom of __top_ (which gets a defined height at some point based on its contents) and to the bottom of its parent __sidePanel_, the __sidePanel_ and __bottom_ are both ambiguous; which makes sense i guess since the constraints are awfully similar (and which doesn't get avoided by adding the constraint for __bottom_ to the __sidePanel_ view as opposed to the topmost self.view).</p>
  
  <p>If I hardcode a height for __bottom_, i resolve ambiguity but I don't want a defined height; i want it to fill remaining space in __sidePanel_.
  <br/><br/>
  Any suggestions on what I could try to resolve ambiguity but still achieve what I'm after?</p>