能否用富文本吗?怎样实现,比如说 “1时1分1秒” 怎样让里面的“1”显示为14像素,汉字显示为12像素
PHP中文网2017-04-18 09:44:17
You can use rich text to get the NSMutableAttributedString object through rich text. For UILabel, an attribute is provided@property(nullable, nonatomic,copy) NSAttributedString *attributedText
Just assign the generated NSMutableAttributedString object to the attribute of attributedText directly.