How to make UILabel text appear with "..." at the end when text is longer than label's width

It is fairly easy:

  1. Create a UILabel called "aLabel" for example.

  2. Create an IBOutlet.

  3. Do:

    aLabel.adjustsFontSizeToFitWidth = false
    aLabel.lineBreakMode = .byTruncatingTail
    

If you are adding UIlabel through a Storyboard, following steps can be useful:

  1. Select the label which you want to display '...' at the end.

  2. Go to attributes inspector.

  3. Select 'Line Breaks' and choose an option Truncate Tail

  4. Check it by giving a text of more content size than label size.