1. label 左右约束要给。 

 
2.代码实现
label.adjustsFontSizeToFitWidth = YES

posted on 2018-07-12 14:09  懂事长qingzZ  阅读(236)  评论(0编辑  收藏  举报