Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Autoresize property work in Xcode 4.3?

I recently updated to Xcode 4.3 and it disabled my UILabels' autoshrink property. I rechecked the boxes in IB and rebuilt the project but it is still cutting off the text. Any suggestions? Is this a known bug? Is there a way to fix this programatically.

like image 996
Charles Burgess Avatar asked Feb 18 '12 19:02

Charles Burgess


1 Answers

I'm seeing the same thing. You can work around it programmatically (I do it in viewDidLoad):

myLabel.adjustsFontSizeToFitWidth = YES;
like image 183
JLundell Avatar answered Oct 26 '22 15:10

JLundell