Reputation:
With autolayout on xCode 7.2
I can't multiline UILabel on iOS 8.3
while it is getting very well multiline on iOS 9.2
. I am sure it is due to version I currently am. Earlier with the same constraints I was able to multiline using xCode 6.3
for iOS 8.3
.
Constraints are :
and numberoflines set to 0
Upvotes: 0
Views: 94
Reputation:
What I needed to do is reset the layout engine for this particular label. After setting label's text. Now it works fine in iOS 7,8 and 9. Still don't why this solved version issues.
[lblName layoutIfNeeded];
Upvotes: 0
Reputation: 203
I think it will help you
first set line breaks Mode=Word Warp and then give number of lines
Upvotes: 1