title: UIButton not resizing fontsize automatically
body: <p>I'm programmatically adding a UIButton to my view, and I want that font size into the button resize it automatically (e.g. if the text is long, resize to a smaller font to fit the button).</p>
  
  <p>This code is not working (the font is always the same):</p>
  
  <pre><code>myButton = [UIButton buttonWithType: UIButtonTypeRoundedRect];
  [myButton setTitle:[NSString stringWithFormat:@"hello"] forState:UIControlStateNormal];
  [myButton setFrame: CGRectMake(0, 0, 180, 80)];
  [myButton.titleLabel setFont: [UIFont boldSystemFontOfSize:16.0]];
  
  myButton.titleLabel.adjustsFontSizeToFitWidth = TRUE;
  
  [theView addSubview:myButton];
  </code></pre>