Timur Bernikowich Timur Bernikowich - 8 months ago 71
Objective-C Question

How to add dots to UILabel if text does not fit frame

I have a cell with multiline UILabels, but when the text's label does not fit the frame, no dots are shown. How can I fix this?


Have you tried this?

yourLabel.adjustsFontSizeToFitWidth = NO;
yourLabel.lineBreakMode = NSLineBreakByTruncatingTail;

Prior iOS6 use UILineBreakModeTailTruncation