title: sizeWithFont: ConstrainedToSize: lineBreakMode: method is deprecated in iOS 7
body: <p>sizeWithFont: ConstrainedToSize: lineBreakMode: method is deprecated in iOS 7 and I'm a little unsure how to handle this exactly. After a little of research on the internet I found that there's a new method for handling this, which is:</p>
  
  <pre><code>[txt drawWithRect: options: attributes: context:]
  </code></pre>
  
  <p>This is the method that I am currently attempting to run:</p>
  
  <pre><code>+ (CGSize)textSizeForText:(NSString *)txt
  {
      CGFloat width = [UIScreen mainScreen].applicationFrame.size.width * 0.75f;
      CGFloat height = MAX([JSBubbleView numberOfLinesForMessage:txt],
                           [txt numberOfLines]) * [JSMessageInputView textViewLineHeight];
  
  
      return [txt sizeWithFont:[JSBubbleView font]
             constrainedToSize:CGSizeMake(width - kJSAvatarSize, height + kJSAvatarSize)
                 lineBreakMode:NSLineBreakByWordWrapping];
  
  }
  </code></pre>
  
  <p>But I'm having a hard time converting it to the new method. Mainly with the lineBreakMode: which is nowhere in the new method. Any ideas? </p>