任何想法为什么在IB上设置属性文本时UIButton不尊重adjustsFontSizeToFitWidth。带有归属文本不尊重的UIButton adjustsFontSizeToFitWidth
button.titleLabel?.numberOfLines = 3
button.titleLabel?.adjustsFontSizeToFitWidth = true
button.titleLabel?.lineBreakMode = .//tried all options here....
button.titleLabel?.minimumScaleFactor = 0.2
具有u试过这种button.titleLabel .lineBreakMode = NSLineBreakByClipping?; –
其中u是设置按钮 –
界面构建器的文本。 –