1,触摸开始,当手指刚接触屏幕的时候触发web
-(void)touchesBegan:(NSSetspa
*)touches withEvent:(UIEvent *)event对象
2,移动触摸点,当手指在屏幕上移动的时候触发继承
-(void)touchesMoved:(NSSet事件
*)touches withEvent:(UIEvent *)eventit
3,取消触摸,电话打入的时候会触发此事件io
-(void)touchesCancelled:(NSSetevent
*)touches withEvent:(UIEvent *)eventwebkit
4,结束触摸,当手指离开屏幕的时候触摸此事件方法
-(void)touchesEnded:(NSSet
*)touches withEvent:(UIEvent *)event
UITouch *touch = [touches anyObjecys];//获取触摸点集合 CGPoint *currentPoint = [touch locationInView:self];//获取当前触摸点的坐标
CGPoint *prePoint = [touch previousLocationInView:self];//获取上一个触摸点的坐标