Hi all,
If you want to show dots if text does not fit UILabel frame. then just copy this code.
UILabel property "numberOfLines" is 1 by default. Try to set it 0 if you dont know the exact numberOfLines and use sizeToFit method of UILable.
yourLabel.adjustsFontSizeToFitWidth = NO;
yourLabel.lineBreakMode = NSLineBreakByTruncatingTail;
Prior iOS6 use UILineBreakModeTailTruncation
0 Comment(s)