我有两个UIButtons
。按下时我能够使它们突出显示。:
-(IBAction) button1Pressed:(id)sender {
[self performSelector:@selector(highlightButton1:) withObject:sender afterDelay:0.0];
}
- (void)highlightButton1:(UIButton *)a {
[a setHighlighted:YES];
}
-(IBAction) button2Pressed:(id)sender {
[self performSelector:@selector(highlightButton2:) withObject:sender afterDelay:0.0];
}
- (void)highlightButton2:(UIButton *)b {
[b setHighlighted:YES];
}
我想在突出显示另一个按钮时取消突出显示一个按钮。但我不能让它工作。