问题
I need some help with UIButtons,
I was wondering how to get the glow effect that I set with the code below to respond to where the touch is.
[C setShowsTouchWhenHighlighted:YES];
The idea is that when the button is touched it will follow where the touch is.
回答1:
You have to do this yourself. Load a glow png into a UIImageView
and add it into the view hierarchy. Then set the view's position based on touches.
http://i.imgur.com/RS2kQ.png
来源:https://stackoverflow.com/questions/8203571/uibutton-glow-effect