本文介绍了如何在iPhone / iPad的UILabel上设置粗体和斜体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iPhone / iPad的 UILabel 上设置粗体和斜体?
我搜索了论坛,但没有任何帮助我。任何人都可以帮助我吗?

How do I set bold and italic on UILabel of iPhone/iPad?I searched the forum but nothing helped me. Could anyone help me?

推荐答案

sectionLabel.font = [UIFont fontWithName:@"TrebuchetMS-Bold" size:18];

您可以设置一个字体名称列表来代替'fontWithName'属性。链接在这里
链接文字

There is a list of font names that you can set in place of 'fontWithName' attribute.The link is herelink text

这篇关于如何在iPhone / iPad的UILabel上设置粗体和斜体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 12:59
查看更多