title: How to get a UITextView to autosize within a UITableViewCell
body: <p>Setup:  I have a <code>UITextView</code> inside a <code>UITableViewCell</code>'s <code>contentView</code>.  I want it to take up the full size of the cell.  I create the text view like so:</p>
  
  <pre><code>UITextView *textView = [[[UITextView alloc] initWithFrame:CGRectMake(0,0,268,43)] autorelease];
  textView.backgroundColor = [UIColor redColor];
  textView.layer.cornerRadius = 10;
  textView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
  </code></pre>
  
  <p>And I override heightForRowAtIndexPath to return 200 for that row.</p>
  
  <p>The background color is just so I can tell where it is.  The cell seems to be automatically sizing it correctly upon first view.  However, I need it to continue to resize it correctly while autorotating the interface, which only seems to work sometimes, and only when I'm not editing the textView.  Other times, it resizes the view to have a very small height (looks like -1), or makes it too wide, or just doesn't even resize it at all.</p>
  
  <p>I've tried overriding layoutSubviews in the cell and just do nothing, but even that doesn't stop the view from resizing all over the place.</p>
  
  <p>I've been hacking away at this for awhile now, but still have found no solution.</p>