user3693546
user3693546

Reputation:

Can't multiline UILabel on iOS 8.3 using xCode 7.2

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 :

enter image description here

and numberoflines set to 0

Upvotes: 0

Views: 94

Answers (2)

user3693546
user3693546

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

chirag bhalara
chirag bhalara

Reputation: 203

I think it will help you

first set line breaks Mode=Word Warp and then give number of lines

enter image description here

Upvotes: 1

Related Questions