Skip to content

Commit

Permalink
Fixed issue MortimerGoro#76: Swiped cell state issue when table view …
Browse files Browse the repository at this point in the history
…is scrolling
  • Loading branch information
MortimerGoro committed Apr 17, 2015
1 parent 901fc61 commit b1c40a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,10 @@ -(void) prepareForReuse
{
[super prepareForReuse];
[self cleanViews];
if (_swipeState != MGSwipeStateNone) {
_triggerStateChanges = YES;
[self updateState:MGSwipeStateNone];
}
BOOL cleanButtons = _delegate && [_delegate respondsToSelector:@selector(swipeTableCell:swipeButtonsForDirection:swipeSettings:expansionSettings:)];
[self initViews:cleanButtons];
}
Expand Down

0 comments on commit b1c40a8

Please sign in to comment.