title: resize static UITableViewCell dynamically
body: <p>I have a <code>UITableView</code> that has a number of static cells. There are no prototypes.</p>
  
  <p>One cell as a <code>UITextField</code> and a <code>UITextView</code>. I want the <code>UITextView</code> to be hidden depending on the input of the <code>UITextField</code>. This is not a problem.</p>
  
  <p>My problem is that I would like to resize the <code>UITableViewCell</code> that both of these controls are in - so that when the <code>UITextView</code> is hidden the cell height is 30, and when it is displayed its height is 70 (this makes the <code>UITextView</code> fully visible).</p>
  
  <p>As they are static cells, I have simply set the height in IB to 70 (the largest) so when the <code>UITextView</code> is hidden there is a lot of unused space in the cell which I would like to get rid of by changing the cell height to 30.</p>
  
  <p>I assume that I would need to tell the cell to redraw using something like</p>
  
  <pre><code>[self.tableView beginUpdates];
  [self.tableView reloadRowsAtIndexPaths:@[indexPathOfYourCell] withRowAnimation:UITableViewRowAnimationNone];
  [self.tableView endUpdates]; 
  </code></pre>
  
  <p>But how do I get the reference to the cell from a subview (the <code>UITextField</code>)?</p>
  
  <p>Also how would I tell the cell the new height? Should I tag it and use </p>
  
  <pre><code>-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  </code></pre>
  
  <p>as I would for dynamic prototype sizing?</p>