Renya
Renya

Reputation:

uibutton property to avoid highlights

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

Answers (4)

Suresh
Suresh

Reputation:

set adjustsImageWhenHighlighted property to YES...
it will avoid the highlight of UIButton

Upvotes: 1

k-thorat
k-thorat

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

Vinzius
Vinzius

Reputation: 2901

Did you try adding :

[ homebut setHighlighted:NO ];

?

Upvotes: 0

Vladimir
Vladimir

Reputation: 170819

Try setting button's adjustsImageWhenHighlighted property to NO

Upvotes: 2

Related Questions