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?
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.
A control that executes your custom code in response to user interactions.
cause first is you have to click from the 3 button after clicking from the 3 button then you will click idenfifywhichpressed button and this button will identify or print which button from the 3 was pressed. During setup, mark the button tag as 1,2,3... When your click action done, check the sender.
From Apple's doc for UIControlEvents:
UIControlEventTouchCancelA system event canceling the current touches for the control.
UIControlEventTouchDownA touch-down event in the control.
UIControlEventTouchDownRepeatA repeated touch-down event in the control; for this event the value of the UITouch tapCount method is greater than one.
UIControlEventTouchDragEnterAn event where a finger is dragged into the bounds of the control.
UIControlEventTouchDragExitAn event where a finger is dragged from within a control to outside its bounds.
UIControlEventTouchDragInsideAn event where a finger is dragged inside the bounds of the control.
UIControlEventTouchDragOutsideAn event where a finger is dragged just outside the bounds of the control.
UIControlEventTouchUpInsideA touch-up event in the control where the finger is inside the bounds of the control.
UIControlEventTouchUpOutsideA touch-up event in the control where the finger is outside the bounds of the control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With