title: UITextView dynamically resizing text box / cell
body: <p>I'm loading my UITextView from an XML feed so the text is constantly changing. I'm trying the following to resize the cell and text, and it resizes the cell but not the text view, it's just not displaying the text view, or sometimes just part of it.</p>
  
  <p>Any tips along the right way will be really appreciated;</p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      AssessObject *newObj1;
      newObj1=[totalArray objectAtIndex:indexPath.row];
  
      NSString *cellText = newObj1.routeText;
  
      UIFont *cellFont = [UIFont fontWithName:@"Helvetica" size:16.0];
      CGSize constraintSize = CGSizeMake(188.0, CGFLOAT_MAX);
      CGSize textViewSize = [cellText sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:UILineBreakModeWordWrap];
  
  
      return textViewSize.height + 200;
  
  
  }
  </code></pre>