假设在panGesture的回调事件里已经拿到了panGestureRecognizer

 

CGPoint point = [panGestureRecognizer locationInView:self.view];//获得的是当前的触摸点的坐标

CGPoint point2 = [panGestureRecognizer translateInView:self.view];//获得的是当前的触摸点相对于起始触摸点的偏移量

posted on 2018-07-09 17:25  ximenchuixie  阅读(129)  评论(0编辑  收藏  举报