84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
能否用富文本吗?怎样实现,比如说 “1时1分1秒” 怎样让里面的“1”显示为14像素,汉字显示为12像素
用富文本NSMutableAttributedString
可以用富文本的,通过富文本获取到NSMutableAttributedString对象,对于UILabel来说提供了一个属性@property(nullable, nonatomic,copy) NSAttributedString *attributedText直接将生成的NSMutableAttributedString对象赋值给attributedText这个属性就行。
@property(nullable, nonatomic,copy) NSAttributedString *attributedText
用富文本NSMutableAttributedString
可以用富文本的,通过富文本获取到NSMutableAttributedString对象,对于UILabel来说提供了一个属性
@property(nullable, nonatomic,copy) NSAttributedString *attributedText
直接将生成的NSMutableAttributedString对象赋值给attributedText这个属性就行。