Reputation:
At the time of click a button it's highlighted. While click the button i want to avoid the highlighting of button.
In my Application background image for the button is square shape if i'm click the button it shows square outline of the button.but my button is customtype only....
Please help me out to solve this....
Thank you Renya
Upvotes: 2
Views: 1424
Reputation:
set adjustsImageWhenHighlighted property to YES...
it will avoid the highlight of UIButton
Upvotes: 1
Reputation: 5123
If you are creating button using Interface Builder..
Inside the button Attribute Inspector ..
On the top .. there is drop down box.. which has different states of the button like Default, Highlighted, Selected etc.. you can set Button's behavior here..
Upvotes: 1
Reputation: 170819
Try setting button's adjustsImageWhenHighlighted
property to NO
Upvotes: 2