How can I make the area of a UIButton
in which the button still triggers the touchUpInside
method smaller? When I press a button and drag my finger outside it (not lifting the finger), the area outside the button's bounds that keeps the button highlighted is pretty large.
I would like to achieve that the touchUpInside
method would only get triggered if the finger (being dragged) is still inside the bounds of the button. Currently, if you press a button and, while not lifting your finger, you drag your finger outside the button, the area in which the touchUpInside
method (instead of the touchUpOutside
method) is called is pretty big. Can I limit the touchUpInside
method to get called only if the finger is inside the bounds of the button?
Thank you.