开发者

uibutton property to avoid highlights

开发者 https://www.devze.com 2023-01-17 23:24 出处:网络
At the time of click a button it\'s highlighted. While click the button i want 开发者_如何学Cto avoid the highlighting of button.

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 ];

?

0

精彩评论

暂无评论...
验证码 换一张
取 消