iDevelopper / PBRevealViewController

A UIViewController subclass for revealing a left and/or right view controller above or below a main view controller.
MIT License
80 stars 16 forks source link

Can't delete row in UITableView #40

Closed lorenzoPrimi closed 6 years ago

lorenzoPrimi commented 6 years ago

Since I switched to this component my users reported that they can't delete anymore rows from the UITableView. Is maybe related to the open menu gesture? How do I fix it?

Thanks

lorenzoPrimi commented 6 years ago

Solved with

- (BOOL)revealControllerPanGestureShouldBegin:(PBRevealViewController *)revealController direction:(PBRevealControllerPanDirection)direction{
    if (direction == PBRevealControllerPanDirectionRight)
        return YES;
    else if (revealController.isLeftViewOpen)
        return YES;
    return NO;
}