Detecting Tap & Hold in UITableView cells
问题 How do we detect a tap & hold on a UITableViewCell ? 回答1: In iOS 3.2 or later you can use UILongPressGestureRecognizer 回答2: Here's the code lifted straight from my app. You should add these methods (and a boolean _cancelTouches member) to a class you derive from UITableViewCell. -(void) tapNHoldFired { self->_cancelTouches = YES; // DO WHATEVER YOU LIKE HERE!!! } -(void) cancelTapNHold { [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(tapNHoldFired) object:nil]; } -