Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

handlePanGestureRecognizer - executeCompletionBlock EXC_BAD_ACCESS #63

Open
swl367 opened this issue Feb 25, 2014 · 1 comment
Open

Comments

@swl367
Copy link

swl367 commented Feb 25, 2014

I'm getting a EXC_BAD_ACCESS after I successfully finish swiping a table view cell.

In this part of the code:

if (cellState == MCSwipeTableViewCellState1 && _modeForState1) {
cellMode = self.modeForState1;
}

    else if (cellState == MCSwipeTableViewCellState2 && _modeForState2) {
        cellMode = self.modeForState2;
    }

    else if (cellState == MCSwipeTableViewCellState3 && _modeForState3) {
        cellMode = self.modeForState3;
    }

    else if (cellState == MCSwipeTableViewCellState4 && _modeForState4) {
        cellMode = self.modeForState4;
    }

    if (cellMode == MCSwipeTableViewCellModeExit && _direction != MCSwipeTableViewCellDirectionCenter) {
        [self moveWithDuration:animationDuration andDirection:_direction];
    }

    else {
        [self swipeToOriginWithCompletion:^{
            [self executeCompletionBlock];
        }];
    }

I crash on the [self executeCompletionBlock].

@nico6ka
Copy link

nico6ka commented Feb 6, 2015

I have exactly the same crash. Have you solved your issue?

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

No branches or pull requests

2 participants