title: Replacement for deprecated -sizeWithFont:constrainedToSize:lineBreakMode: in iOS 7?
body: <p>In iOS 7, the method:</p>
  
  <pre><code>- (CGSize)sizeWithFont:(UIFont *)font
       constrainedToSize:(CGSize)size
           lineBreakMode:(NSLineBreakMode)lineBreakMode 
  </code></pre>
  
  <p>and the method:</p>
  
  <pre><code>- (CGSize)sizeWithFont:(UIFont *)font
  </code></pre>
  
  <p>are deprecated. How can I replace </p>
  
  <pre><code>CGSize size = [string sizeWithFont:font
                   constrainedToSize:constrainSize
                       lineBreakMode:NSLineBreakByWordWrapping];
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>CGSize size = [string sizeWithFont:font];
  </code></pre>