Instance Property

delaysTouchesBegan

A Boolean value determining whether the receiver delays sending touches in a begin phase to its view.

Declaration

@property(nonatomic) BOOL delaysTouchesBegan;

Discussion

When the value of this property is NO (the default), views analyze touch events in UITouchPhaseBegan and UITouchPhaseMoved in parallel with the receiver. When the value of the property is YES, the window suspends delivery of touch objects in the UITouchPhaseBegan phase to the view. If the gesture recognizer subsequently recognizes its gesture, these touch objects are discarded. If the gesture recognizer, however, does not recognize its gesture, the window delivers these objects to the view in a touchesBegan:withEvent: message (and possibly a follow-up touchesMoved:withEvent: message to inform it of the touches’ current locations). Set this property to YES to prevent views from processing any touches in the UITouchPhaseBegan phase that may be recognized as part of this gesture.

See Also

Canceling and Delaying Touches

cancelsTouchesInView

A Boolean value affecting whether touches are delivered to a view when a gesture is recognized.

delaysTouchesEnded

A Boolean value determining whether the receiver delays sending touches in a end phase to its view.