make UILabel's text bold

后端 未结 6 1061
梦毁少年i
梦毁少年i 2021-01-31 01:32

I want to make UILabel\'s text bold

infoLabel=[[UILabel alloc]initWithFrame:CGRectMake(90,150, 200, 30)];
[infoLabel setText:@\"Drag 14 more Flavors\"];
[infoLab         


        
6条回答
  •  遥遥无期
    2021-01-31 02:25

    You can set the stroke with a negative value to make a bold effect if you don't have the bold variation of your custom font. See here:

    How can I both stroke and fill with NSAttributedString w/ UILabel

提交回复
热议问题