alikaragoz / MCSwipeTableViewCell

:point_up_2: Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app).
MIT License
2.96k stars 412 forks source link

handlePanGestureRecognizer - executeCompletionBlock EXC_BAD_ACCESS #63

Open swl367 opened 10 years ago

swl367 commented 10 years ago

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 commented 9 years ago

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