Instance Property

multipleTouchEnabled

A Boolean value that indicates whether the view receives more than one touch at a time.

Declaration

@property(nonatomic, getter=isMultipleTouchEnabled) BOOL multipleTouchEnabled;

Discussion

When set to YES, the view receives all touches associated with a multi-touch sequence and starting within the view's bounds. When set to NO, the view receives only the first touch event in a multi-touch sequence that start within the view's bounds. The default value of this property is NO.

Other views in the same window can still receive touch events when this property is NO. If you want this view to handle multi-touch events exclusively, set the values of both this property and the exclusiveTouch property to YES. This property does not prevent a view from being asked to handle multiple touches. For example, two subviews may both forward their touches to a common parent, such as a window or the root view of a view controller. This property determines how many touches initially targeting the view are delivered to that view.

See Also

Configuring the Event-Related Behavior

userInteractionEnabled

A Boolean value that determines whether user events are ignored and removed from the event queue.

exclusiveTouch

A Boolean value that indicates whether the receiver handles touch events exclusively.