title: Correctly define constraint for UITableViewCell resizing
body: <p>i'm currently facing this problem, i need to define a dynamic height UITableViewCell.</p>
  
  <p><img src="https://i.stack.imgur.com/5yc6f.png" alt="enter image description here"></p>
  
  <p>The red lines correspond to resizable views (will grow vertically), the blue label have 3 constraints: two for each immediate red views above (>= 8), one more with 170 and lower priority to superview.</p>
  
  <p>The green one has a bottom constraint to the superview (5)</p>
  
  <p>When i try to run my code, it gives me this: </p>
  
  <pre><code>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:0x19d65bb0 V:[UIView:0x19d9a9a0(5)]&gt;",
   "&lt;NSLayoutConstraint:0x19d667d0 V:[UILabel:0x19de4180(19)]&gt;",
   "&lt;NSLayoutConstraint:0x19d5ba70 V:[UILabel:0x19d61870(19)]&gt;",
   "&lt;NSLayoutConstraint:0x19d36df0 V:[UILabel:0x19d36e80(19)]&gt;",
   "&lt;NSLayoutConstraint:0x19d35d30 V:[UIView:0x19d36130(0)]&gt;",
   "&lt;NSLayoutConstraint:0x19e7b310 V:|-(5)-[UILabel:0x19d6b520]   (Names: '|':UITableViewCellContentView:0x19d97580 )&gt;",
   "&lt;NSLayoutConstraint:0x17d0b060 V:[UILabel:0x19d6b520]-(5)-[UIView:0x19d9a9a0]&gt;",
   "&lt;NSLayoutConstraint:0x17d0a480 V:[UIView:0x19d9a9a0]-(8)-[UILabel:0x19de4180]&gt;",
   "&lt;NSLayoutConstraint:0x17d0c920 V:[UILabel:0x19de4180]-(8)-[UILabel:0x19d61870]&gt;",
   "&lt;NSLayoutConstraint:0x17d0a100 V:[UILabel:0x19d61870]-(8)-[UIView:0x19d839e0]&gt;",
   "&lt;NSLayoutConstraint:0x17d11ad0 V:[UIView:0x19d839e0]-(8)-[UILabel:0x19d36e80]&gt;",
   "&lt;NSLayoutConstraint:0x19e742a0 V:[UILabel:0x19d36e80]-(8)-[UILabel:0x19d36770]&gt;",
   "&lt;NSLayoutConstraint:0x19ed84a0 V:[UILabel:0x19d36770]-(8)-[UIView:0x19d36130]&gt;",
   "&lt;NSLayoutConstraint:0x19e76410 V:[UIView:0x19d36130]-(&gt;=8)-[UILabel:0x19d35560]&gt;",
   "&lt;NSLayoutConstraint:0x19ed8af0 V:[UILabel:0x19d35560]-(8)-[UITextView:0x1832ba00]&gt;",
   "&lt;NSLayoutConstraint:0x19e7abf0 V:[UITextView:0x1832ba00]-(8)-[UILabel:0x19e7d890]&gt;",
   "&lt;NSLayoutConstraint:0x19e83d90 V:[UILabel:0x19e7d890]-(8)-[UITextView:0x18a95e00]&gt;",
   "&lt;NSLayoutConstraint:0x19e7b520 V:[UITextView:0x18a95e00]-(5)-|   (Names: '|':UITableViewCellContentView:0x19d97580 )&gt;",
   "&lt;NSAutoresizingMaskLayoutConstraint:0x19d46fc0 h=--&amp; v=--&amp; V:[UITableViewCellContentView:0x19d97580(0)]&gt;"
  )
  
  Will attempt to recover by breaking constraint 
  &lt;NSLayoutConstraint:0x19d36df0 V:[UILabel:0x19d36e80(19)]&gt;
  
  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.
  </code></pre>
  
  <p>So, the question is:
  What is the correct way of achieving this???</p>