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

c# - Where does the .ToList() go in LINQ query result -

Listeners to visualise results of load test in JMeter -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -