Search code examples
iosuilabel

how to remove three dots from UILabel?


I have a UILabel that contains text that is bigger than the label size. (The UILabel has 2 lines.)

The UILabel is showing the three dots (ellipsis) on iOS. I do not want label to show this dots. How can I make them not show?


Solution

  • Set the label's lineBreakMode to .ByClipping(Swift) or NSLineBreakByClipping(Objective-C).