title: Auto layout constraints in code conflicting with sizes in XIB
body: <p>I've set up a number of <code>UILabels</code> and <code>UIButtons</code> within 3 subviews in a storyboard. In code, I've defined auto layout constraints for all of these however for some reason when I run the app, the sizes that I have defined in the storyboard are conflicting with the constraints in code.</p>
  
  <p>For example, one subview is positioned at <code>0,0</code> in the XIB with height 200 and width 320, simply for me to layout the elements before writing the code. There are no constraints in the storyboard.</p>
  
  <p>This subview has a number of UILabels and UIButtons within it and their cumulative height is supposed to define the height of the subview. This should end up at 205pts height, however the log shows a conflict:</p>
  
  <pre><code>2014-06-02 16:45:38.506 discounter[11691:60b] Unable to simultaneously satisfy constraints.
  Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
  (
  "&lt;NSIBPrototypingLayoutConstraint:0x109390160 'IB auto generated at build time for view with fixed frame' V:[UIView:0x109389010(200)]&gt;",
  "&lt;NSLayoutConstraint:0x109249510 V:[UIView:0x109389010(205)]&gt;"
  )
  
  Will attempt to recover by breaking constraint 
  &lt;NSLayoutConstraint:0x109249510 V:[UIView:0x109389010(205)]&gt;
  </code></pre>
  
  <p>I have set all my views to have <code>translatesAutoresizingMaskIntoConstraints = NO</code> so I'm at a loss as to why this is happening. It appears to be happening to a number of other elements too, but I have a feeling its probably the same reason why.</p>
  
  <p>Can anyone help?</p>
  
  <p>Thanks!</p>