title: sizeWithFont:constrainedToSize:lineBreakMode: deprecated in iOS7
body: <p>I'm updating my app to iOS 7 and finally got it, but there's one thing I can't find a solution for.</p>
  
  <p>In Xcode 4 I used the following method:</p>
  
  <pre><code>#define FONT_SIZE 14.0f
  #define CELL_CONTENT_WIDTH 280.0f
  #define CELL_CONTENT_MARGIN 10.0f
  
  
  - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; {
      NSString *text = [textA objectAtIndex:[indexPath row]];
  
      CGSize constraint = CGSizeMake(CELL_CONTENT_WIDTH - (CELL_CONTENT_MARGIN * 2), 20000.0f);
  
      CGSize size = [text sizeWithFont:[UIFont systemFontOfSize:FONT_SIZE] constrainedToSize:constraint lineBreakMode:NSLineBreakByWordWrapping];
  
      CGFloat height = MAX(size.height, 28.0f);
  
      return height + (CELL_CONTENT_MARGIN * 2);
  }
  </code></pre>
  
  <p>But I'll get an error when using it in iOS 7:</p>
  
  <blockquote>
    <p><strong>Use -boundingRectWithSize:options:attributes:context:</strong></p>
  </blockquote>
  
  <p>I don't know how to convert my earlier version to this new method and it would be great if anyone could help me. Thanks in advance.</p>