UIButton events. What’s the difference?

From Apple’s doc for UIControlEvents: UIControlEventTouchCancel A system event canceling the current touches for the control. UIControlEventTouchDown A touch-down event in the control. UIControlEventTouchDownRepeat A repeated touch-down event in the control; for this event the value of the UITouch tapCount method is greater than one. UIControlEventTouchDragEnter An event where a finger is dragged into the … Read more

Gesture recognizer and button actions

In the “shouldReceiveTouch” method you should add a condition that will return NO if the touch is in the button. This is from apple SimpleGestureRecognizers example. – (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { // Disallow recognition of tap gestures in the segmented control. if ((touch.view == yourButton)) {//change it to your condition return NO; } return … Read more