Is there any way to change the background of a uibutton while it is highlighted and then have it revert back to original state?
Asked
Active
Viewed 95 times
0
-
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 Answers
0
You can set an image in the utilities panel at the right-side of your screen.
Or use this code:
[button setImage:[UIImage imageNamed:@"pressed.png"] forState:UIControlStateSelected | UIControlStateHighlighted];

Maurice
- 792
- 11
- 34