title: drawInRect:withFont:lineBreakMode:alignment deprecation in IOS 7
body: <p>I have a message of deprecated method.</p>
  
  <p>The line of code is this one :</p>
  
  <pre><code>[string drawInRect:drawArea withFont:uifont lineBreakMode:linebreaks[lineBreakMode] alignment:alignments[hAlignment]];
  </code></pre>
  
  <p>So I want to replace it with this code :</p>
  
  <pre><code>NSMutableParagraphStyle *paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
  paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail;
  paragraphStyle.alignment = NSTextAlignmentCenter;
  
  NSDictionary *attributes = @{ NSFontAttributeName: uifont,
                                NSParagraphStyleAttributeName: paragraphStyle};
  
  [string drawInRect:drawArea withAttributes:attributes];
  </code></pre>
  
  <p>After this replacement, the warning is not here anymore. But, all my text is invisible. For example, I have a text "Options" which is not visible (but I can still click on it).</p>
  
  <p>Someone can help on this please?</p>
  
  <p>Regard</p>