Reputation: 431
I have a square UILabel that will show one word only. However, when that word is too long, it cuts off the word, instead of shrinking it down to fit.
How do I get the UILabel to shrink to fit a single word?
Thanks.
Upvotes: 0
Views: 295
Reputation: 7019
You can used the AutoShrink
property of UILabel
. Please find the below screenshot for the same.
AutoShrink
property.Please refer the below GIF represenation.
Hope it works for you!!!
Upvotes: 2