Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个有多个UILabel. 标签与[myLabel sizeToFit];一起设置myLabel.numberOfLines = 2;。这会导致该多行标签下方的所有标签重叠。有没有更聪明的方法来自动调整UILabel这个多行标签下方的所有位置,这样它们就不会重叠并相应地调整。我不能使用 layoutSubviews,因为我们的应用仍然需要支持 4.3。
UILabel
[myLabel sizeToFit];
myLabel.numberOfLines = 2;
提前感谢您的帮助。
UITableView
UILabels
cell.textLabel