How to hide button selection in iphone

when I click the button, I get the blue color, is there any way to avoid getting this blue color when I click the button.

+5
source share
2 answers

sets the button to look consistent regardless of state

[UIButton1 setBackgroundImage:[UIImage imageNamed:@"ButtonBack.png"] forState:UIControlStateSelected|UIControlStateNormal|UIControlStateHighlighted];
[UIButton1 setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected|UIControlStateNormal|UIControlStateHighlighted];
+6
source

You can add a button background image for the state UIControlStateHighlighted. The background image will be the same as the unselected state.

+2
source