Skip to content

Commit

Permalink
Merge pull request MortimerGoro#94 from fahadm/master
Browse files Browse the repository at this point in the history
Fixed crash in MGSwipeTableCell when using multiple sections with different types of cell
  • Loading branch information
MortimerGoro committed Apr 21, 2015
2 parents aadd6c6 + 4765299 commit d20694a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ -(void) panHandler: (UIPanGestureRecognizer *)gesture
if (!_allowsMultipleSwipe) {
NSArray * cells = [self parentTable].visibleCells;
for (MGSwipeTableCell * cell in cells) {
if (cell != self) {
if ([cell isKindOfClass:[MGSwipeTableCell class]] && cell != self) {
[cell cancelPanGesture];
}
}
Expand Down

0 comments on commit d20694a

Please sign in to comment.