UITouch 触摸事件处理(实例)
1. UITouch 的主要方法:
//手指离开画面(结束操作)时所触发的函式 -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { //宣告一个UITouch的指标来存放事件触发时所撷取到的状态 UITouch *touch = [[event allTouches] anyObject]; //取得并输出连点资讯,tapCount可保留一定时间内的连点次数 tapCountLabel.text = [NSString stringWithFormat:@"%d", [touch tapCount]]; }??来源:http://furnacedigital.blogspot.com/2010/12/touch-panel.html
?
?
?