Laurent Crivello
Laurent Crivello

Reputation: 3931

Do not display ... when UILabel too short

I have an UILabel that I would like to make appear from left to right. In order to to this, I increase gradually its width, however in this case the text shows '...' at the end.

How to prevent the '...' to be displayed ? Thanks.

Upvotes: 0

Views: 63

Answers (1)

Kaan Dedeoglu
Kaan Dedeoglu

Reputation: 14841

Look at the lineBreakMode property of UILabel, I think what you want is NSLineBreakByClipping

Upvotes: 1

Related Questions