So i think you can do something like this (assuming button is red and you want to change to blue briefly):
Have a method called something like (void)changeColor
Code:
- (void)changeColor {
button.setColor('Red'); // probably not right syntax for setting color
}
then in your IBAction method for checking if user has pressed the button or where ever you do that check, have something like (not sure if this will deffaintly work):
Code:
button.setColor('Blue');
[self performSelector: @selector(changeColor) withObject:nil afterDelay:2];
this should after 2 seconds call the changeColor method, which will set the button back to red.
hope this helps!