title: sizeWithFont: constrainedToSize: with UITextView is (sometimes) not creating correct height - iPhone
body: <p>I am using the following code to determine the height needed for a <code>UITextView</code> that is being added to a <code>UITableViewCell</code>, and also to determine the height for each <code>UITableViewCell</code>. </p>
  
  <p>This works 90% of the time, but some incoming data (always the same incoming data) comes up short. If I allow scrolling within the <code>UITextView</code>, I can see that all the text is in the <code>UITextView</code> - but the <code>UITextView</code> does not have enough height to display all the text.</p>
  
  <p>There does not appear to be anything wrong with the text that is being read, no special or hidden characters, etc.</p>
  
  <pre><code>UIFont *font = [UIFont fontWithName:@"ArialMT" size:14];
  CGSize withinSize = CGSizeMake(230, 10000); 
  CGSize size = [currentTimelineText sizeWithFont:font constrainedToSize:withinSize lineBreakMode:UILineBreakModeWordWrap];
  </code></pre>
  
  <p>When I then create a frame with <code>frame = CGRectMake(boundsX, yPosition, 230, size.height);</code> and assign that <code>frame</code> to the <code>UITextView</code> , it (sometimes) comes up short.</p>