title: How to adjust UILabel font size to fit the fixed Rectangle (for iOS7 +)?
body: <p>I know this question has been asked so many times and I have seen most of the solutions like<br><br>
  <a href="https://stackoverflow.com/questions/2844397/how-to-adjust-font-size-of-label-to-fit-the-rectangle">How to adjust font size of label to fit the rectangle?</a>
  <br>
  <a href="https://stackoverflow.com/questions/19195541/how-to-calculate-actual-font-point-size-in-ios-7-not-the-bounding-rectangle">How to calculate actual font point size in iOS 7 (not the bounding rectangle)?</a>
  <br>
  <a href="https://stackoverflow.com/questions/19010207/nsstring-sizewithfont-alternative-in-ios7">NSString sizeWithFont: alternative in iOS7</a></p>
  
  <p>What I want is that I want to adjust the font size in a given rect with <strong>WORD WRAPPING</strong> technique. The posts I mentioned above somehow adjust the font size but none of them is using word wrapping technique. Let say, I have a label</p>
  
  <pre><code>UILabel *tempLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 60, 25)]; \\60px width
  tempLabel.text = @"Internationalisation";
  tempLabel.numberOfLines = 2;
  </code></pre>
  
  <p>Now it should wrap the text in one line (within 60 px) with minimum possible font. But it keeps the text in 2 lines with a bit bigger font and the text breaks up like "Internationali" in first line and "sation" in second. How can we apply word wrapping in it.</p>
  
  <pre><code>tempLabel.adjustsFontSizeToFitWidth = YES;
  </code></pre>
  
  <p>does not seem to work for two or more lines and</p>
  
  <pre><code>CGSize size = [self sizeWithFont:font 
            minFontSize:minFontSize
         actualFontSize:&amp;actualFontSize
               forWidth:maxWidth
          lineBreakMode:self.lineBreakMode];
  </code></pre>
  
  <p>is deprecated in iOS7+
  So how can I resolve my Issue. Please do help. This is so important for me.</p>