title: Auto layout constraints issue on iOS7 in UITableViewCell
body: <p>I'm using auto layout constraints programmatically to layout my custom UITableView cells and I'm correctly defining the cell sizes in <code>tableView:heightForRowAtIndexPath:</code></p>
  
  <p>It's working just fine on iOS6 and it does <em>look</em> fine in iOS7 as well </p>
  
  <p>BUT when I run the app on iOS7, here's the kind of message I see in the console:</p>
  
  <pre><code>Break on objc_exception_throw to catch this in the debugger.
  The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in &lt;UIKit/UIView.h&gt; may also be helpful.
  2013-10-02 09:56:44.847 Vente-Exclusive[76306:a0b] 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;NSLayoutConstraint:0xac4c5f0 V:|-(15)-[UIImageView:0xac47f50]   (Names: '|':UITableViewCellContentView:0xd93e850 )&gt;",
          "&lt;NSLayoutConstraint:0xac43620 V:[UIImageView:0xac47f50(62)]&gt;",
          "&lt;NSLayoutConstraint:0xac43650 V:[UIImageView:0xac47f50]-(&gt;=0)-[UIView:0xac4d0f0]&gt;",
          "&lt;NSLayoutConstraint:0xac43680 V:[UIView:0xac4d0f0(1)]&gt;",
          "&lt;NSLayoutConstraint:0xac436b0 V:[UIView:0xac4d0f0]-(0)-|   (Names: '|':UITableViewCellContentView:0xd93e850 )&gt;",
          "&lt;NSAutoresizingMaskLayoutConstraint:0xac6b120 h=--&amp; v=--&amp; V:[UITableViewCellContentView:0xd93e850(44)]&gt;"
  )
  
  Will attempt to recover by breaking constraint 
  &lt;NSLayoutConstraint:0xac43650 V:[UIImageView:0xac47f50]-(&gt;=0)-[UIView:0xac4d0f0]&gt;
  </code></pre>
  
  <p>And <em>indeed</em> there's one of the constraint in that list I don't want :</p>
  
  <pre><code>"&lt;NSAutoresizingMaskLayoutConstraint:0xac6b120 h=--&amp; v=--&amp; V:[UITableViewCellContentView:0xd93e850(44)]&gt;"
  </code></pre>
  
  <p>and I cannot set the <code>translatesAutoresizingMaskIntoConstraints</code> property of the <code>contentView</code> to NO => it would mess up the entire cell.</p>
  
  <p>44 is the default cell height but I defined my custom heights in the table view delegate so why does the cell contentView has this constraint? What could cause this? </p>
  
  <p>In iOS6 it's not happening and everything looks just fine on both iOS6 and iOS7.</p>
  
  <p>My code is quite big so I won't post it here but feel free to ask for a pastebin if you need it.</p>
  
  <p>To specify how I'm doing it, on cell intialization:</p>
  
  <ul>
  <li>I create all my labels, buttons, etc</li>
  <li>I set their <code>translatesAutoresizingMaskIntoConstraints</code> property to NO</li>
  <li>I add them as subviews of the <code>contentView</code> of the cell </li>
  <li>I add the constraints on the <code>contentView</code></li>
  </ul>
  
  <p>I'm also deeply interested in understanding why this happens only on iOS7.</p>