title: Resizing UITextView for Landscape Orientation
body: <p>I have a basic View created in IB containing a UITableView and a UITextVIew. I size the UITextView programatically to fit its content as below:</p>
  
  <pre><code>CGRect frame = self.textView.frame;
  frame.size.height = self.textView.contentSize.height;
  self.textView.frame = frame;
  </code></pre>
  
  <p>This works fine for portrait orientation, but when in landscape the text view grows to accommodate the additional horizontal space (which is desired) but the above code makes the height larger than the content. From output statements, it appears as though the above code is not taking into account the new width of the text view.</p>
  
  <p>Is there any way to take into account the new width in order to determine the correct height?</p>