Let me touch a table cell to cancel other current strokes.

Is there any way to tell the system to cancel all touch event sequences that are currently occurring in your application?

In one part of my application, I show a new view when a user selects a specific table cell. But I want to make sure that they do not touch other buttons at the same time. For example, if they hold the toolbar button when they select a table cell, I want to cancel this click on the toolbar.

A UIActionSheetwill do this type of undo touch when it is shown, and that is exactly what I want to do.

I tried installing exclusiveTouchon UIToolbar, but that didn't seem to help. And the toolbar button is UIBarButtonItem, so it has no property exclusiveTouch. Elsewhere should I set this property, which may help?

+5
source share
1 answer

Set exclusiveTouchon representations requiring exclusivity; this is probably a table instead of buttons.

While you cannot install exclusiveTouchdirectly on UIBarButtonItems, you can install it on the toolbar routines (ick).

+1
source

All Articles