title: Manually specify constraints in Xcode 4 interfacebuilder/storyboard
body: <p>This seems like a really basic question, but I can't find the answer to it.</p>
  
  <p>When I add elements to a scene in my storyboard, or drag them around or resize them, Xcode automatically adds and removes constraints to describe their sizing and positioning. </p>
  
  <p>Now, once Xcode has created a constraint of a particular type - say, a height constraint - I know that I can modify its attributes - <code>Relation</code>, <code>Constant</code> and <code>Priority</code> in the case of the height constraint - via the attributes inspector. What I <em>can't</em> figure out is how to manually add or remove constraints of a given type rather than relying on Xcode's magic to do so for me.</p>
  
  <p><img src="https://i.stack.imgur.com/Yci30.png" alt="screenshot showing the same stuff described in the paragraph above"></p>
  
  <p>For example, in my current scenario, I have a ViewController that contains a toolbar and a table view. Now, I <em>know</em> exactly what constraints I want to use to describe the vertical positioning and sizing of those two views:</p>
  
  <ul>
  <li>The top of the toolbar has Vertical Space 0 from the top of the screen</li>
  <li>The toolbar has a fixed height</li>
  <li>The bottom of the table view has Vertical Space 0 from the bottom of the screen</li>
  <li>The top of the table view has Vertical Space 0 from the bottom of the toolbar</li>
  </ul>
  
  <p>This way the table view's height will adjust appropriately to the screen size.</p>
  
  <p>However, Xcode, in its wisdom, has decided that this isn't what I want, and has instead inflicted the following constraints on me (which it doesn't seem to want to change no matter how much I randomly drag stuff around and pray):</p>
  
  <ul>
  <li>The top of the toolbar has Vertical Space 0 from the top of the screen</li>
  <li>The bottom of the toolbar has Vertical Space 526 from the bottom of the screen</li>
  <li>The table view has Vertical Space 0 from the bottom of the screen</li>
  <li>The table view has a fixed height of 526</li>
  </ul>
  
  <p>As a result, everything goes wrong when I try viewing my ViewController on a smaller screen, or in a container:</p>
  
  <p><img src="https://i.stack.imgur.com/If9b9.png" alt="screenshot of EVERYTHING GOING WRONG"></p>
  
  <p>Not being able to just manually set my own constraints when I know exactly what I need is frustrating. How can I explicitly delete the bullshit constraints that Xcode has automatically created and manually add my own instead?</p>