About Navigationcontroller Slide gestures

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.