Reputation: 281
I have a screen that has multiple UILabel
. The labels are set to [myLabel sizeToFit];
along with myLabel.numberOfLines = 2;
. This causes all the labels below this multiline label to overlap. Is there a smarter way to auto adjust the positions of all UILabel
below this multiline labels so they do not overlap and adjust accordingly. I cannot use layoutSubviews as our app still has to support 4.3.
Thanks for your help in advance.
Upvotes: 0
Views: 113
Reputation: 4500
UILabel
is decided dynamically. You'll have to adjust the position of the UILabel
which follows accordingly.UITableView
. UILabels
which will be
in another cell will be placed properly.cell.textLabel
it won't be much effort to create a UITableView
.Upvotes: 1