假设在panGesture的回调事件里已经拿到了panGestureRecognizer
CGPoint point = [panGestureRecognizer locationInView:self.view];//获得的是当前的触摸点的坐标
CGPoint point2 = [panGestureRecognizer translateInView:self.view];//获得的是当前的触摸点相对于起始触摸点的偏移量
2023-11-26 21:30:34
假设在panGesture的回调事件里已经拿到了panGestureRecognizer
CGPoint point = [panGestureRecognizer locationInView:self.view];//获得的是当前的触摸点的坐标
CGPoint point2 = [panGestureRecognizer translateInView:self.view];//获得的是当前的触摸点相对于起始触摸点的偏移量
下一篇:mongodb常用命令学习笔记