title: iOS8: Possible to use "tableview.rowHeight = UITableViewAutomaticDimension" for static cells?
body: <p>I have a UITableView that has five static cells. I need the cell height of one cell to adjust automatically to its contents, which is one UILabel.</p>
  
  <p>Is there any way I can use..</p>
  
  <pre><code>tableView.estimatedRowHeight = 42.0
  tableView.rowHeight = UITableViewAutomaticDimension
  </code></pre>
  
  <p>..for a table view with static cells, or does this only work for table views with dynamic prototype cells?</p>
  
  <p>(Or is there any other way of doing this that you would recommend?)</p>
  
  <h2>Additional info</h2>
  
  <p>The UITableView is in a TableViewController which is embedded into a Container View.</p>
  
  <p>The five static cells are quite different from one another and are only used in one app scene, so I don't see much point in going for dynamic prototypes and custom cell subclasses.</p>
  
  <p>I update the tableview like this</p>
  
  <pre><code>-(void) viewDidAppear:(BOOL)animated {
      [super viewDidAppear:animated];
      [_myTableView reloadData];
  }
  </code></pre>
  
  <p>I add constraints to the UILabel as described here:
  <a href="http://www.appcoda.com/self-sizing-cells/" rel="noreferrer">http://www.appcoda.com/self-sizing-cells/</a></p>