This API function is in the Navigationcontroller stack Uiviewcontroller can support the right-hand gesture, that is, do not click the Back button in the upper right corner, gently on the left side of the screen slide, the screen will return, as the iOS device screen increases, This small function makes the fingers short, the thumb large and the hand-disabled people see the Gospel. This function is good, but often we will have the need to customize the return button, if you manually customize the return button, this function will be invalidated, that is, the custom Navigationitem Leftbarbuttonitem, then this gesture will be invalidated. Workaround find two types of 1. Reset gesture Delegate
Self.navigationController.interactivePopGestureRecognizer.delegate = (id) self; |
Tip: If multiple pages jump this method write in the Viewwillappear method to set the proxy
2. Of course you can also respond to events of this gesture yourself
[Self.navigationController.interactivePopGestureRecognizer addtarget:self Action: @selector (handlegesture:)];
|
IOS8 Navigation Navigationcontroller Right slip gesture problem