At the time of click a button it's highlighted. While click the button i want 开发者_如何学Cto 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
Try setting button's adjustsImageWhenHighlighted
property to NO
set adjustsImageWhenHighlighted property to YES...
it will avoid the highlight of UIButton
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..
Did you try adding :
[ homebut setHighlighted:NO ];
?
精彩评论