title: Dynamic row heights of a UITableView inside a UITableViewCell
body: <p>I have a 'master' UITableView, in which I use different cells that are loaded from .xib's. Some of these cells themselves also have a UITableView. </p>
  
  <p>For now I have set the row height of each cell to the original xib size. However, I would like to have the height dynamic and corresponding to the amount of rows in the 'child' UITableView.</p>
  
  <p>I run into the following problem:</p>
  
  <ul>
  <li>Upon ViewController load, the master UITableView needs to have a height for every cell it has.</li>
  <li>By the time this height is needed, the child UITableView hasn't loaded its own cells yet, and therefore is not the proper size yet.</li>
  </ul>
  
  <p>I have tried the following:</p>
  
  <ul>
  <li>At first, load the cell's with a 'estimated' height</li>
  <li>The cell loads its own tableView and calls to refresh the master tableView</li>
  </ul>
  
  <p>However, in this case, the cell will use the 'estimated' height to lay out its own rows. Therefore it is always too big or too small.</p>
  
  <p>How do I solve this problem?</p>