Reputation: 9234
I have a lot of buttons on my view. And when I hold my finger at one of them, I still can tup on others buttons and they will do their actions. How to block that ? Thanks...
Upvotes: 0
Views: 270
Reputation: 26400
Did u try setting the exclusiveTouch
property to 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.
Upvotes: 1