What is the difference between Pan and Swipe in iOS?
问题 Sounds simple .. Hold the Trackpad, move the finger, release .. But somehow swipe is not being triggered (pan is triggered instead) UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:v action:@selector(handleSwipe:)]; swipeGesture.direction= UISwipeGestureRecognizerDirectionUp; [v addGestureRecognizer:swipeGesture]; Pan is recognized by the above sequence instead. UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:v