iOS 禁用多控件同时点击 笔记

来源:互联网 发布:工作的意义 知乎 编辑:程序博客网 时间:2024/05/22 23:58
[view setExclusiveTouch:YES];

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


@property(nonatomic, getter=isExclusiveTouch) BOOL exclusiveTouch
Discussion
Setting this property to YES causes the receiver to block the delivery of 
touch events to other views in the same window. The default value of this property is NO.


Availability
Available in iOS 2.0 and later.
See Also
  @property multipleTouchEnabled
Declared In
UIView.h
原创粉丝点击