title: Contenting deprecated sizeWithFont:constrainedToSize to boundingRectWithSize:options:attributes:context:
body: <p>How can I convert     </p>
  
  <pre><code> CGSize labelHeighSize = [text sizeWithFont: [UIFont systemFontOfSize:16] constrainedToSize:maximumSize lineBreakMode:NSLineBreakByTruncatingTail];
  </code></pre>
  
  <p>to </p>
  
  <pre><code>CGSize labelHeighSize = [text boundingRectWithSize:maximumSize options:  attributes:  context: 
  </code></pre>