Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting Tap & Hold in UITableView cells

How do we detect a tap & hold on a UITableViewCell?

like image 320
JFMartin Avatar asked Oct 27 '09 20:10

JFMartin


People also ask

What is tap detection?

A tap is determined to have occurred if the sum exceeds a threshold value for a predetermined amount of time. If a second tap is detected within a predetermined time after the first tap, then a double tap is determined to have occurred.


1 Answers

In iOS 3.2 or later you can use UILongPressGestureRecognizer

like image 148
Simon Whitaker Avatar answered Sep 20 '22 18:09

Simon Whitaker