I have two UIButtons. I was able to make them highlighted when pressed. :
-(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];
}
I wanted to unhighlight a button when the other button is highlighted.
But I can’t make it work.
If you really have your buttons defined as:
then you can do:
parameters a & b are ignored in this particular case…