MCSwipeTableViewCell
MCSwipeTableViewCell copied to clipboard
handlePanGestureRecognizer - executeCompletionBlock EXC_BAD_ACCESS
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].
I have exactly the same crash. Have you solved your issue?