How to adjust font size of label to fit the rectangle?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-05-16T15:58:49Z Indexed on 2010/05/16 19:30 UTC
Read the original article Hit count: 285

Filed under:
|

Yeah, there's this cool myLabel.adjustsFontSizeToFitWidth = YES; property. But as soon as the label has two lines or more, it won't resize the text to anything. So it just gets truncated with ... if it doesn't fit into the rect.

Is there another way to do it?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uilabel