Open yanhuangzisuen opened 7 years ago
widthFenceConstraint.priority = UILayoutPriorityRequired - 1; 替换一下 widthFenceConstraint.priority = UILayoutPriorityDefaultHigh - 1;
self.contentLabel.preferredMaxLayoutWidth = [UIScreen mainScreen].bounds.size.width - 20;
即可解决。
感谢楼上的老哥,完美解决了10.2上的问题
widthFenceConstraint.priority = UILayoutPriorityRequired - 1; 替换一下 widthFenceConstraint.priority = UILayoutPriorityDefaultHigh - 1;