autolayout - UILabel with linebreak and auto layout -


so i've been having issue while. have uilabel has constraint auto layout. label text long parts of text appears off screen.

i've tried setting number of line both within storyboard settings , thru code:

label.numberoflines = 0; 

the code works charm until add constraint label.

any ideas on how fix this?

add code..

_lable.numberoflines=0; _lable.preferredmaxlayoutwidth = 300.0; //add width 

uilabel documentation


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -