I've encountered a problem where my button should remain "pressed down" while it shows popover called from it. Popover is selector for some filter and filter is shown on button itself. When I tap on it and it shows popover it becomes deselected no matter what.
I think I have to redefine it's behavior on touch event and make it respond not to standart touch up inside
. Then I wondered what are other events responsible for? But I couldn't find events list in iOS library and in StackOverflow are only questions about incorrect behavior of touch up inside
or touch down
.
So what's the difference betweeen touch events?
- touch cancel - when you touch button but move your finger away and
it remains deselected?
- touch down - right on tap.
- touch down repeat ??
- touch drag enter ??
- touch drag exit ??
- touch drag inside ??
- touch drag outside ??
- touch up inside - when you tap and release button remaining in it's
bounds . It changes UIButtons state to Normal.
- touch up outside - when you tap and release button leaving it's
bounds ?
other IBActions are not sent by UIButton, right?
Also how those events change UIButton's appearance? Like highlighted
or selected
?
I'd appreciate a link on good article about IBActions, because I couldn't find it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…