jjzjj

finalTime

全部标签

ios - 如何仅在 touchesMoved 上查找向上滑动

我目前正在使用touchesMoved允许用户向上滑动,向上滑动的次数越多,增加的次数就越大。我不认为我可以在这里使用UIGestureRecognizer,因为它不会记录每一个Action-它只会记录单次滑动。这是我当前的代码:-(void)touchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event{UITouch*touch=[touchesanyObject];CGPointgestureEndPoint=[touchlocationInView:self.view];NSLog(@"START:%@END:%@",NSString