开发者

uibutton property to avoid highlights

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜