0xgoku
0xgoku

Reputation: 518

Why my UILabel doesn't truncate?

I already configured it from the story board to truncate tail, but it still doesn't get truncated when I set the addressLabel.text = "something very long"

Any ideas?

Screenshot - text doesn't get truncated

Upvotes: 0

Views: 1665

Answers (1)

Nata Mio
Nata Mio

Reputation: 2228

The issue was because there is no horizontal spacing between the address and the contact label, Also because address label has equal width so its taking the width of the screen and as you can see the three dots.by adding constraints should solve your issue.

Good luck !

Upvotes: 1

Related Questions