iphoneuibutton

uibutton property to avoid highlights


At the time of click a button it's highlighted. While clicking the button, I want to avoid the highlighting of the button.

In my application, the background image for the button is a square shape, and if I click the button, it shows a square outline of the button. My button is customtype only.


Solution

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