iphone 双击事件

-(IBAction)multipleTap:(id)sender withEvent:(UIEvent*)event {

UITouch* touch = [[event allTouches] anyObject];

//连续点击三次

if (touch.tapCount == 3) {


// do action.


} else {

// other action.

}

}

你可能感兴趣的:(iPhone)