点击事件的几种情况

1.UITapGestureRecognizer 的delegate:

1)gesture locationInView一个点击在view的坐标;点击如果在view的外面,就会出现负值;

2).delegate控制一个事件是否识别等。gestureRecognizerShouldBegin

2.ConvertView,ConvertPoint;

3.UIView继承了UIResponder:

touchesBegan/Move/End/Cancel;

PressesBegan/Move/End/Cancel;

MotionBegan/Move/End/Cancel;

4.UITouch,UIEvent,UIPress;

1)Event是个集合的概念,touch,motion是子项;

EventType:touch,motion,press,remote;

2)touch可以得到点击的位置,点击的view或windows;

5.UIDevice:

》》

你可能感兴趣的:(点击事件的几种情况)