title: UITableView resize cell based on content
body: <p>Hi I need help with understanding how to resize cell based on its content.</p>
  
  <p>So first of all of course I found many links:</p>
  
  <p><a href="https://stackoverflow.com/questions/12789013/ios-multi-line-uilabel-in-auto-layout">iOS: Multi-line UILabel in Auto Layout</a></p>
  
  <p><a href="https://www.youtube.com/watch?v=CkvZEJ7dIfw" rel="nofollow noreferrer">https://www.youtube.com/watch?v=CkvZEJ7dIfw</a></p>
  
  <p><a href="https://github.com/williamhqs/GSTableViewDynamicHeight" rel="nofollow noreferrer">https://github.com/williamhqs/GSTableViewDynamicHeight</a></p>
  
  <p>As we said about git example (last link) I can't understand how to change some label and make it works. For example if I delete UILabel and create new one and bind it with content property (content - it is IBOutlet property of bottom label). I seems lost some setting and cell won't stretch.</p>
  
  <p>So I think I don't know to much understanding how to do it.</p>
  
  <p>What I want to understand:</p>
  
  <ol>
  <li>How to setup auto layouts in the storyboard or programmatically.</li>
  <li>Which thing I should handle programmatically to make it done.</li>
  <li>How the preferred size affects on label. Do we need every time use bonds of superview as a preferred size?</li>
  </ol>
  
  <p>Also in the git example we have one label that changes itself size. What if we have 2 UILabels with dynamic content how to setup it?</p>
  
  <p>If you have some links or videos please drop them here, because I really stuck. Thank you!</p>
  
  <p>I know it's duplicated question but I can't understand how to setup it.</p>