MCSwipeTableViewCell icon indicating copy to clipboard operation
MCSwipeTableViewCell copied to clipboard

handlePanGestureRecognizer - executeCompletionBlock EXC_BAD_ACCESS

Open swl367 opened this issue 11 years ago • 1 comments

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].

swl367 avatar Feb 25 '14 20:02 swl367

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

nico6ka avatar Feb 06 '15 10:02 nico6ka