1. label 左右约束要给。 2.代码实现label.adjustsFontSizeToFitWidth = YES 转载于:https://www.cnblogs.com/qingzZ/p/9299195.html