Search code examples
iosuibuttontouch

UIButton highlight area extends way outside button


When the user touches a UIButton, the highlight state should start. When he slides his finger outside of the button (still without lifting his finger), the button highlight is supposed to stop, and when he lifts his finger the button should not be triggered.

This behavior is exactly how iOS works, but I'm a little surprised about the effective area for which the highlight is still applied. For a small button, I have to move my finger several times the height of the button above or below the button before the highlight stops.

Is this normal, or am I doing something wrong? Is the highlight area supposed to be controlled by the framework or is it something I can set?


Solution

  • This is a normal behavior of a framework for any UIButton whether you select a property of "show High light on touch" or NOT for a button.

    But there is little bit change in behavior when one use "info light" button. The selection area of "info light" button is slightly bigger than the size of its own.