Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation controller pop to back view pan gesture enable ? #227

Open
HemalAsanka opened this issue Nov 13, 2017 · 1 comment
Open

Navigation controller pop to back view pan gesture enable ? #227

HemalAsanka opened this issue Nov 13, 2017 · 1 comment

Comments

@HemalAsanka
Copy link

We can disable pan mode of the center navigation controller. But I need to know, how to disable pan mode of center navigation top view controllers and enable iOS default pop to back view controller gesture?

@HemalAsanka HemalAsanka changed the title Navigation controller pop to back view option enable ? Navigation controller pop to back view pan gesture enable ? Nov 14, 2017
@alejandroivan
Copy link

alejandroivan commented Jan 12, 2018

There is a setPanMode: method in MFSideMenuContainerViewController, which controls if the pan gesture should be enabled or not.

You could add [sideMenu setPanMode: MFSideMenuPanModeNone]; in viewDidAppear: and [sideMenu setPanMode: MFSideMenuPanModeDefault]; in viewWillDisappear: for every UIViewController other than the first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants