In iOS, when FD_FullscreenPopViewController is used, the scrollView right slide cannot be used. scrollviewcontroller
When we have scrollView in ViewController, we may encounter a right slide failure to respond to the returned gesture. the following solutions are available:
You can customize a scrollView by using the following methods:
@ Implementation GOfflineContentScrollView
-(BOOL) gestureRecognizer :( UIGestureRecognizer *) gestureRecognizer author :( UIGestureRecognizer *) otherGestureRecognizer
{
// First, judge whether otherGestureRecognizer is a system pop gesture.
If ([otherGestureRecognizer. view isKindOfClass: NSClassFromString (@ "UILayoutContainerView")]) {
// Determine whether the state of the system gesture is began or fail, and whether the position of the scrollView is on the far left.
If (otherGestureRecognizer. state = UIGestureRecognizerStateBegan & self. contentOffset. x = 0 ){
Return YES;
}
}
Return NO;
}
@ End