【发布时间】:2011-06-13 13:33:07
【问题描述】:
我正在调整一些视觉变化,并注意到当我尝试设置 UIButton 的背景颜色时,它只设置实际按钮外部的颜色(而不是按钮本身内部)
UIButton* button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.frame = CGRectMake(6, 9, 50, 25);
[button setTitle:@"Select" forState:UIControlStateNormal];
button.backgroundColor = [UIColor redColor];
是否存在允许我设置颜色的其他属性?
【问题讨论】:
标签: uibutton background-color iphone