How to make UILabel text appear with "..." at the end when text is longer than label's width
It is fairly easy:
Create a UILabel called "aLabel" for example.
Create an IBOutlet.
Do:
aLabel.adjustsFontSizeToFitWidth = false aLabel.lineBreakMode = .byTruncatingTail
If you are adding UIlabel through a Storyboard, following steps can be useful:
Select the label which you want to display '...' at the end.
Go to attributes inspector.
Select 'Line Breaks' and choose an option Truncate Tail
Check it by giving a text of more content size than label size.