title: sizeWithFont doesn't give correct height for UITextView if there is a long string in the text being wrapped
body: <p>Is there a way to get the correct size of an NSString using:</p>
  
  <pre><code>- (CGSize)sizeWithFont:(UIFont *)font forWidth:(CGFloat)width lineBreakMode:(UILineBreakMode)lineBreakMode
  </code></pre>
  
  <p>that doesnt get thrown off by 2 or 3 hundred character strings. At the moment if I try to use this method on these long strings it incorrectly calculates them and I end up with lots of whitespace at the bottom of the UITextView.</p>
  
  <p>I've tried using UILineBreakModeWordWrap and UILineBreakModeCharacterWrap.</p>
  
  <p>the resizing is being done in </p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
      CGFloat     result = 44.0f;
      NSString*   text = nil;
      CGFloat     width = 0;
      CGFloat     tableViewWidth;
      CGRect      bounds = [UIScreen mainScreen].bounds;
  
      tableViewWidth = bounds.size.width;
  
  
      width = tableViewWidth - 150;       
  
      text = stringWithLongWords;
  
      if (text) {
          CGSize      textSize = { width, 20000.0f };     
          CGSize      size = [text sizeWithFont:[UIFont systemFontOfSize:10.0f] constrainedToSize:textSize lineBreakMode:UILineBreakModeWordWrap];
  
          size.height += 50.0f;               
          result = MAX(size.height, 44.0f+30.0f); 
      }
  
      return result;
  }
  </code></pre>