Bold & Non-Bold Text In A Single UILabel?

后端 未结 14 2183
别那么骄傲
别那么骄傲 2020-11-22 08:51

How would it be possible to include both bold and non-bold text in a uiLabel?

I\'d rather not use a UIWebView.. I\'ve also read this may be possible using NSAttribut

14条回答
  •  情深已故
    2020-11-22 09:49

    That's easy to do in Interface Builder:

    1) make UILabel Attributed in Attributes Inspector

    Bold Example Step 1

    2) select part of phrase you want to make bold

    Bold Example Step 2

    3) change its font (or bold typeface of the same font) in font selector

    Bold Example Step 3

    That's all!

提交回复
热议问题