make UILabel's text bold

后端 未结 6 1067
梦毁少年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:32

    Using the GUI in Xcode select the label then go to the Attributes Inspector. One of the options is Font. Click on the font icon (not the up-down arrows). In the popup that appears expand the Font ComboxBox. Under the Bold System section choose Regular.

    Xcode screenshot

提交回复
热议问题