¡@

Home 

2014/10/15 ¤U¤È 10:14:44

iphone Programming Glossary: taptimer

How can I detect a double tap on a certain cell in UITableView?

http://stackoverflow.com/questions/1031254/how-can-i-detect-a-double-tap-on-a-certain-cell-in-uitableview

UITableView tableView didSelectRowAtIndexPath NSIndexPath indexPath checking for double taps here if tapCount 1 tapTimer nil tappedRow indexPath.row double tap Put your double tap code here tapTimer invalidate self setTapTimer nil UIAlertView.. for double taps here if tapCount 1 tapTimer nil tappedRow indexPath.row double tap Put your double tap code here tapTimer invalidate self setTapTimer nil UIAlertView alert UIAlertView alloc initWithTitle @ Double Tap message @ You double tapped.. otherButtonTitles @ OK nil alert show alert release else if tapCount 0 This is the first tap. If there is no tap till tapTimer is fired it is a single tap tapCount tapCount 1 tappedRow indexPath.row self setTapTimer NSTimer scheduledTimerWithTimeInterval..