uibutton - iPhone: How to avoid background color coming up when button is selected? -


i have button curved image set foreground image. looks like:

not selected

now when button on pressed state, shows this:

button pressed state

notice grey rectangular color coming around edges. there easy way avoid grey background coming on rectangle ?

you need set property shows touch on highlight enabled.

programmatically can with:

[button setshowstouchwhenhighlighted:yes]; 

Comments