ios - Show glow when a button is touched -


trying use info button in ios app. wondering if knows how simulate glow effect when click on it.

see example weather or stocks apps in iphone; when touch it, glow highlight around touch. touch , hold see it.

uibutton has property called showstouchwhenhighlighted. default set no.

if set yes glow effect when button highlighted.

you can set in interface builder checking "shows touch on highlight" option.

or can in code with:

infobutton.showstouchwhenhighlighted = yes; 

this applies uibuttons, not info ones.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -