<分区>
我正在绘制自定义 UIButton 并希望在突出显示时设置蓝色。我怎样才能做到这一点?
UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];
[myButton setBackgroundImage:[[UIImage imageNamed:@"test.png"] stretchableImageWithLeftCapWidth:100 topCapHeight:0] forState:UIControlStateNormal];