title: How to fit a String into a rectangle?
body: <p>I have an NSString and want to fit it into a rectangle. The rectangle has a specified size, lets say width=150 and height=30. When the String is short and has only one character, it can be as high as the rectangle. More specific: It can have a big font size. But if the string has too much characters and would exceed the bounds of the rectangle, it must become smaller. More specific: It's font size must become smaller, so that it won't exceed the bounds of the rectangle. Is there a way of doing that without messing around in core graphics?</p>
  
  <p>For some reason, UILabel's adjustsFontSizeToFitWidth Property has no effect. The text keeps beeing small even if there is plently of space.</p>
  
  <p>I've set that to</p>
  
  <pre><code>label.adjustsFontSizeToFitWidth = YES;
  </code></pre>
  
  <p>but nothing happens. I hope there is another way to do that...</p>