title: sizeWithFont:constrainedToSize:lineBreakMode deprecated
body: <p>I have the following code:</p>
  
  <pre><code>float height = [string sizeWithFont:[UIFont systemFontOfSize:kFontSize] constrainedToSize:CGSizeMake(widthOfTextView, 999999.0f) lineBreakMode:NSLineBreakByWordWrapping].height + verticalPadding;
  </code></pre>
  
  <p>However, whenever I run my application and get a warning telling me that this is deprecated. What should I use and how would I use it with my current code?</p>
  
  <p>Thanks!</p>