Skip to content

Disabled Panning is not staying disabled! #191

@mxnmike

Description

@mxnmike

This code is broken, because it never triggers the viewwillAppear or the viewwilldissappear original methods, why would you enable the pan if the programmer has already disable it??

how can i fix this???

  • (void)my_viewWillAppear:(BOOL)animated
    {
    // Additional code Here

    // Call original viewWillAppear method
    [self my_viewWillAppear:animated];
    }

  • (void)my_viewWillDisappear:(BOOL)animated
    {
    // Additional code Here

    // Enabling pan gesture for left and right menus
    AMSlideMenuMainViewController *mainVC = [AMSlideMenuMainViewController getInstanceForVC:self];
    mainVC.leftPanDisabled = NO;
    mainVC.rightPanDisabled = NO;

    // Call original viewWillDisappear method
    [self my_viewWillDisappear:animated];
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions