Genadinik
Genadinik

Reputation: 18649

ios - UILabel text resets to very tiny font size when I try to put longer text into it

I have a screen I am working on like this:

enter image description here

On top is a UILabel that I fetch from the remote database and replace with whatever the default is. When the value of that string is long, the system resets the font size to very small like in this emulator screen shot:

enter image description here

Is there any way to prevent it from doing that?

Thanks!

Upvotes: 0

Views: 143

Answers (1)

Asif Mujteba
Asif Mujteba

Reputation: 4656

enter image description here

1- change no. of lines of text of uilabel to 2

2- uncheck the auto shrink flag

Upvotes: 1

Related Questions