title: UITextView text cut off when there is a large amount of text
body: <p>I have a UITableViewCell subclass that contains a UITextView where scrolling is turned off. I set its frame like this, in my table view cell layoutSubviews method:</p>
  
  <pre><code>    CGRect frame = self.bodyTextView.frame;
      CGSize size = self.bodyTextView.contentSize;
      frame.size = size;
      self.bodyTextView.frame = frame;
  </code></pre>
  
  <p>This has been working fine for some time, but I've noticed that in a case where I have a particularly large amount of text, the text is getting cut off. I've set the text view frame background color to orange so I could verify that the frame was being set correctly. Here is an example (I am only showing the bottom portion of the text view):</p>
  
  <p><img src="https://i.stack.imgur.com/4DjsW.png" alt="enter image description here"></p>
  
  <p>The frame is the correct size based on the text (in this case 1019 points), but the text stops before the bottom of the text view. I have also seen the text get cut off part way through a line, (ie the text of the last visible line of text is cut off half way through horizontally). Does anyone have an idea what is happening here? </p>
  
  <p>A few other points:</p>
  
  <ul>
  <li>The text views work well for all my table view cells with shorter content.</li>
  <li>If I increase the amount of text in the case shown above, the text view height increases, but the text still gets cut off at the same place.</li>
  </ul>