objective c - UILabel word wrap preventing -


i have label 2 lines of text, problem word getting wrapped instead of getting smaller fit fixed width , fixed height !

enter image description here

any idea on how fix programmatically appreciated. thank you

just set font readjust size according label width so:

labelname.numberoflines = 1; labelname.adjustsfontsizetofitwidth = yes; 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -