just from a HIG standpoint, you might want to consider using an accessory button instead of requiring double tap? I don't know the usage scenario, but you might have to explain this one to your users.
–
Ben GotowJun 23 '09 at 13:18

Could you please explain me how do I exactly override the method? I created an object which inherits from UITableView and added a method you recommended. But this method doesn't get called. Thanks.
–
Ilya SuzdalnitskiJun 23 '09 at 15:50

2

Not to necropost per se, but this is exactly the sort of thing I was looking for - thanks! Only one gotcha for me. What if the UITableView in question is the one within the UITabBar's moreNavigationController? :(
–
Joe D'AndreaSep 3 '09 at 20:21

3

You can also add this to your UITableViewCell class.
–
GarthexJan 29 '13 at 22:35

You'll probably need to subclass UITableView and override whatever touch events are appropriate (touchesBegan:withEvent;, touchesEnded:withEvent, etc.) Inspect the events to see how many touches there were, and do your custom behavior. Don't forget to call through to UITableView's touch methods, or else you won't get the default behavior.

Note: please see the comments below to see though while this solution worked for me, it still may not be a good idea.

An alternative to creating a subclass of UITableView or UITableViewCell (and to using a timer) would be just to extend the UITableViewCell class with a category, for example (using @oxigen's answer, in this case for the cell instead of the table):

This way you don't have to go around renaming existing instances of UITableViewCell with the new class name (will extend all instances of the class).

Note that now super in this case (this being a category) doesn't refer to UITableView but to its super, UITView. But the actual method call to touchesEnded:withEvent: is in UIResponder (of which both UITView and UITableViewCell are subclasses), so there's no difference there.