[英]UIButton with attributed text not respecting adjustsFontSizeToFitWidth
任何想法為什么UIButton與IB上的歸屬文本設置不尊重adjustsFontSizeToFitWidth。
button.titleLabel?.numberOfLines = 3
button.titleLabel?.adjustsFontSizeToFitWidth = true
button.titleLabel?.lineBreakMode = .//tried all options here....
button.titleLabel?.minimumScaleFactor = 0.2
adjustsFontSizeToFitWidth不適用於屬性字符串,您必須自己手動設置適當的字體大小
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.