March 2013
Intermediate to advanced
1000 pages
34h 51m
English
Touch events can be turned off entirely at the application level with UIApplication’s beginIgnoringInteractionEvents. It is quite common to do this during animations and other lengthy operations during which responding to a touch could cause undesirable results. This call should be balanced by endIgnoringInteractionEvents. Pairs can be nested, in which case interactivity won’t be restored until the outermost endIgnoringInteractionEvents has been reached.
A number of UIView properties also restrict the delivery of touches to particular views:
userInteractionEnabled
opacity
0.0 (or extremely close to it), this view (along with its subviews) is excluded from receiving touches. Touches on this view or one of its subviews “fall through” to a view behind it.
hidden
multipleTouchEnabled
exclusiveTouch
exclusiveTouch view receives a touch only if no other views ...Read now
Unlock full access