【发布时间】:2012-12-10 18:19:17
【问题描述】:
可能重复:
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]];
我想要我的字体粗体和斜体。 谁能帮我? 提前谢谢你。
【问题讨论】:
-
哎呀,Arial 中的拼写错误...这是 Ariel :( 我的运气不好...您可以使用提供的链接中的其他字体。
-
有人知道 System Font Bold 的答案是什么吗?我找不到上面写着“Apple System Font is ...”的地方
标签: iphone objective-c ios uilabel uifont