title: NSAttributedString boundingRectWithSize is returning wrong height for my table cells?
body: <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  {
     NSAttributedString *aString = [self.rows objectAtIndex:indexPath.row];
  
     CGRect r = [aString boundingRectWithSize:CGSizeMake(self.tableView.bounds.size.width, CGFLOAT_MAX)
                                   options:NSStringDrawingUsesLineFragmentOrigin context:nil];
  
     r.size.height += 50.0f;
      return r.size.height;
  }
  </code></pre>
  
  <p>My self.rows contain NSAttributedString's which have different sizes.
  Some consist of just a single word and some consist of several lines (containing newline characters)
  I need to add 50.0f to the height because otherwise my cells do not show all the content of the longer texts.</p>
  
  <p>The problem is that if the text contains only a single word I get much to much padding. 
  My table cell consists of just a label with the following auto layout:</p>
  
  <pre><code>@"V:|[customLabel]|"
  @"H:|-[_customLabel]-|"
  </code></pre>
  
  <p>What am I doing wrong?</p>