如题所说,userInteractionEnabled是一个骗子,我为了她研究一个晚上
A Boolean value that determines whether user events are ignored and removed from the event queue. When set to NO, user events—such as touch and keyboard—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. Note:Note Some UIKit subclasses override this property and return a different default value. See the documentation for that class to determine if it returns a different value.
时间: 2024-09-30 14:30:32