iOS 13 UIPanGestureRecognizer behave differently from iOS 12
问题 I have a custom scroll view that works well before iOS 13 that uses UIPanGestureRecognizer: _panRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)]; _panRecognizer.delegate = self; - (void)handlePan:(UIGestureRecognizer *)gestureRecognizer { UIPanGestureRecognizer* pgr = (UIPanGestureRecognizer*)gestureRecognizer; if (pgr.state == UIGestureRecognizerStateChanged) { // do something } } Now it didn't work well with iOS 13. The handlePan function does