make UILabel's text bold

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

    If you want to retain the system font and make it bold:

    [infoLabel setFont:[UIFont boldSystemFontOfSize:16]];
    

提交回复
热议问题