gpt4 book ai didi

iphone - UILabel 字体 : bold and italic

转载 作者:可可西里 更新时间:2023-11-01 03:24:59 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How do I set bold and italic on UILabel of iPhone/iPad?

我正在尝试使用系统字体将 UILabel 字体设为粗体和斜体,但我不能同时使用这两种样式。那么是否可以使用系统字体将字体设置为粗体和斜体?这是我的代码,

lblTitle.font = [UIFont italicSystemFontOfSize:[UIFont systemFontSize]]; 

lblTitle.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]];

我想要粗体和斜体两种字体。谁能帮我?提前谢谢你。

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com