label1.preferredMaxLayoutWidth = 100; label1.numberOfLines = 0; //自适应行数 转载于:https://www.cnblogs.com/yibinpan/p/4450363.html