我的代码是
UILabel *pTeamAlreadybl=[[UILabel alloc]initWithFrame:CGRectMake(110, 275,180,30)];
pTeamAlreadybl.text=@" Team already?";
pTeamAlreadybl.font=[UIFont boldSystemFontOfSize:16];
pTeamAlreadybl.textAlignment=UITextAlignmentLeft;
pTeamAlreadybl.textColor=[UIColor colorWithRed:61.0/255.0 green:61.0/255.0 blue:61.0/255.0 alpha:0.6];
pTeamAlreadybl.shadowColor = [UIColor colorWithWhite:1.0 alpha:0.7];
如何更改标签的背景色?
最佳答案
你想念
pTeamAlreadybl.backgroundColor=[UIColor anycolor];
编写这段代码
关于iphone - 更改UILabel背景颜色,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6955339/