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
Comments
Post a Comment