相关疑难解决方法(0)

使UILabel的文字变为粗体

我想让UILabel的文字变得粗体

infoLabel=[[UILabel alloc]initWithFrame:CGRectMake(90,150, 200, 30)];
[infoLabel setText:@"Drag 14 more Flavors"];
[infoLabel setBackgroundColor:[UIColor clearColor]];
[infoLabel setFont:[UIFont fontWithName:@"Arial" size:16]];

[infoLabel setTextColor:[UIColor colorWithRed:193.0/255 
                                        green:27.0/255 
                                         blue:23.0/255 
                                        alpha:1 ]];
Run Code Online (Sandbox Code Playgroud)

objective-c textcolor uilabel uifont ios

51
推荐指数
5
解决办法
8万
查看次数

37
推荐指数
2
解决办法
2万
查看次数