Timur Bernikowich Timur Bernikowich - 2 months ago 16x
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