Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UILabel text doesn't word wrap

Just found the problem, my numberOfLines was still at 1. After setting it to 0 it works fine.


May be it will be useful - since some lines are deprecated now

lBody.lineBreakMode = NSLineBreakByCharWrapping;
lBody.textAlignment =  NSTextAlignmentLeft;

and of course - lBody.numberOfLines should be more than 1(1 is default value)