我有一个按钮,我在其中设置它的图像及其选定和突出显示的状态图像,如下所示:
UIImage *buttonImage = [UIImage imageNamed:@"btn_learn_pad"];
self.learnMoreButton = [[UIButton alloc] initWithFrame:CGRectMake(50, 0, buttonImage.size.width, buttonImage.size.height)];
[self.learnMoreButton setImage:buttonImage forState:UIControlStateNormal];
[self.learnMoreButton setImage:[UIImage imageNamed:@"btn_learn_focus_pad"] forState:UIControlEventTouchUpInside | UIControlStateHighlighted | UIControlStateSelected];
[self.learnMoreButton addTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
这仍然会在选择时将 Apple 的较暗 alpha 覆盖在图像顶部。如何消除这种影响?
谢谢