How to remove three points from UILabel?

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

UILabel shows three dots (ellipsis) on iOS. I do not want labels to display these dots. How can I make them not show?

+5
source share
3 answers

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

+20
source

Please add a code

 [labelname sizeToFit]; 
+3
source

I have completed the following steps:

1. Increase the height of the label, as I have 2 lines match.

2. Select a label, go to attributes inspector

3.select Line Breaks = Word Wrap

4. Also increase the lines, for example 2,3

changing line break in attributes inspector change line break in attribute inspector

Worked for me

0
source

All Articles