title: How do I change the height of a UITableView to fit its dynamic content?
body: <p>I've a UITableView which contains a cell, which in turn contains a TTTextEditor (a Three20 control) which for all intents and purposes is a UITextView. I'm using the TTTextEditor so the user can enter a dynamic amount of text, and as the control resizes I'm using a delegate method to increase the height of the containing cell accordingly. So far so good.</p>
  
  <p>When I've finished editing, with the cell now taller, the table no longer scrolls enough to cover the content. I'm assuming I need to adjust the height of the table to compensate for the increase in the cell height, but whatever I try doesn't seem to have an effect. From reading around, I'm trying this:</p>
  
  <pre><code>CGRect frame = [self.tableView frame];
  CGSize contentSize = self.tableView.contentSize;
  
  [self.tableView setFrame:CGRectMake(frame.origin.x, 
                                      frame.origin.y, 
                                      frame.size.width, 
                                      contentSize.height)];
  </code></pre>
  
  <p>But it doesn't work - the frame height does increase, but not to the correct height, and in any case the table scrolls no more that it did originally. I've also tried the sizeToFit method on the tableView without success.</p>
  
  <p>Does anyone have an insight into how I can get the tableview's scrollable height to increase?</p>