Instance Property

userInteractionEnabled

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

Declaration

@property(nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled;

Discussion

When set to NO, touch, press, keyboard, and focus events intended for the view are ignored and removed from the event queue. When set to YES, events are delivered to the view normally. The default value of this property is YES.

During an animation, user interactions are temporarily disabled for all views involved in the animation, regardless of the value in this property. You can disable this behavior by specifying the UIViewAnimationOptionAllowUserInteraction option when configuring the animation.

See Also

Configuring the Event-Related Behavior

multipleTouchEnabled

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

exclusiveTouch

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