api:self.navigationController.interactivePopGestureRecognizer.enabled = YES; 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 be returned. 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;
2. Of course you can also respond to events of this gesture yourself
[Self.navigationController.interactivePopGestureRecognizer addtarget:self Action: @selector (handlegesture:)];
Recommended Blog: http://blog.sina.com.cn/s/blog_65c178a80102v0f4.html
About Navigationcontroller Slide gestures