Tuesday, May 3, 2011

UILabel - autoresize

Hi,

How is it possible to resize size of text in UILabel in order to fit in the label? (I don't want those 3 dots to appear)

Thank you in advance.

From stackoverflow
  • UILabel *label;
    label.adjustsFontSizeToFit = YES;
    label.minimumFontSize = 5.0; // or whatever else minimum font size you want
    

    ... should do the trick!

0 comments:

Post a Comment