title: Using autolayout on iOS how can I specify that a view should take up as much space as possible?
body: <p>I am using autolayout in iOS to try and build a layout with fluid widths.  The visual format for the constraint I am currently using is:</p>
  
  <pre><code>[self.scrollViewContainer addConstraints:[NSLayoutConstraint 
       constraintsWithVisualFormat:@"H:|-(&gt;=32)-[viewToAdd(&lt;=576)]-(&gt;=32)-|" 
                           options:0 
                           metrics:nil  
                             views:NSDictionaryOfVariableBindings(viewToAdd)
  ]];
  </code></pre>
  
  <p>That is to say: I want a minimum of 32px spacing on either side, and I want the <code>viewToAdd</code> to have a maximum width of 576px.  This works well except that I want the <code>viewToAdd</code> to use up any available space while still meeting all the constraints.  Currently I get the <code>viewToAdd</code> only ever being as wide as its intrinsic content size, and the spacing growing as needed.</p>
  
  <p>Is there a way to specify that the <code>viewToAdd</code> should be as large as possible?</p>