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...
Asked
Active
Viewed 264 times
1 Answers
1
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.

visakh7
- 26,380
- 8
- 55
- 69
-
U need to set that for all buttons. – Ilanchezhian Jul 21 '11 at 08:55
-
self.view.multipleTouchEnabled = NO; self.view.exclusiveTouch = YES; – bobbypage Jul 21 '11 at 08:55
-
Try setting it on your view in which the buttons are placed. also make sure that the `multipleTouchEnabled` is set as `YES` – visakh7 Jul 21 '11 at 08:56
-
self.view.multipleTouchEnabled = YES; self.view.exclusiveTouch = YES; But still I can tup on two buttons...What is the problem ? – Jim Jul 21 '11 at 09:17
-
Pls see this previous SO question http://stackoverflow.com/questions/1080043/how-to-disable-multitouch – visakh7 Jul 21 '11 at 09:19
-
Check @Mark's answer in that. – visakh7 Jul 21 '11 at 09:23
-
still exclusiveTouch for some reason is not working for me, I set that for all buttons ((. In any way, thanks for help... – Jim Jul 21 '11 at 09:36