Is there a way to make the text "automatically" smaller if the text in one row is longer than it can fit?
Yep:
UILabel *myLabel = /* init the label */
myLabel.adjustsFontSizeToFitWidth = YES;
For iOS 7 :
myLabel.minimumScaleFactor = 0.5; // Float from 0 to 1; as a scale of init size.
For iOS 6 and Prior :
myLabel.minimumFontSize = 10; // Float value, in pixels (int value recom'd).
You can read more in Apple's UILabel
docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With