iOS 禁用多控件同時點擊 筆記

[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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章