title: Dynamic Cell Size in Table View from a custom Xib
body: <p>(Warning, I'm an iOS newbie.)
  I have created a custom Table View Cell and have registered it, and implemented it, on two seperate Table View Controllers. When I run the app the custom xib content is truncated by the parent Table Cell View height. </p>
  
  <p>I'd like for each Table View to dynamically determine its height based on the height of the content in the custom Table View Cell xib.</p>
  
  <p>I have tried adding </p>
  
  <pre><code>    myTableView.rowHeight = UITableViewAutomaticDimension
      myTableView.estimatedRowHeight = 160.0
  </code></pre>
  
  <p>to one of the Table View Controller's viewDidLoad function, but no luck.</p>
  
  <p><a href="https://i.stack.imgur.com/Fx6HC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Fx6HC.png" alt="Custome Table View Cell"></a></p>
  
  <p><a href="https://i.stack.imgur.com/uPkUX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uPkUX.png" alt="Separate Table View Controllers implementing custom xib"></a></p>
  
  <p><a href="https://i.stack.imgur.com/KV2sf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KV2sf.png" alt="Height of Table View 1"></a></p>