I have a UIButton
that selects itself on UIControlEventTouchUpInside
. It deselects itself on UIControlEventTouchUpOutside
. I also want it to deselect itself when there is a touch down outside of the button. Is there a good way to do this without subclassing UIWindow
and overriding -hitTest:withEvent:
?
EDIT: I just found this question, which confirms my fear that there isn't a really clean way to do this.