Skip to content

Commit

Permalink
Merge pull request #37 from powerpro/master
Browse files Browse the repository at this point in the history
Fixes handleTap getting triggered after the cell is deallocated
  • Loading branch information
dimitribouniol committed Sep 8, 2014
2 parents f420a42 + b34a8e1 commit 2fa2d17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/MDSpreadViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ - (instancetype)initWithStyle:(MDSpreadViewCellStyle)aStyle reuseIdentifier:(NSS
return self;
}

- (void)dealloc {
[self removeGestureRecognizer: _tapGesture];
_tapGesture.delegate = nil;
}

- (void)setSpreadView:(MDSpreadView *)aSpreadView
{
spreadView = aSpreadView;
Expand Down

0 comments on commit 2fa2d17

Please sign in to comment.