Timur Bernikowich Timur Bernikowich - 1 year ago 141
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?

Answer Source

Have you tried this?

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

Prior iOS6 use UILineBreakModeTailTruncation

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download