0

Is there any way to change the background of a uibutton while it is highlighted and then have it revert back to original state?

  • See this question: http://stackoverflow.com/questions/14523348/how-to-change-the-background-color-of-a-uibutton-while-its-highlighted – enjayem May 13 '14 at 23:08

1 Answers1

0

You can set an image in the utilities panel at the right-side of your screen.

enter image description here

Or use this code:

[button setImage:[UIImage imageNamed:@"pressed.png"] forState:UIControlStateSelected | UIControlStateHighlighted];
Maurice
  • 792
  • 11
  • 34