Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Commit

Permalink
Fixing a potencial crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nunobaldaia committed Jan 11, 2017
1 parent 5383d88 commit 9c4629f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NBReorderTableView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "NBReorderTableView"
s.version = "0.1.6"
s.version = "0.1.7"
s.summary = "Reorder table view cells with long press."
s.description = <<-DESC
NBReorderTableView is a `UITableView` subclass to support reordering cells with long press.
Expand Down
2 changes: 1 addition & 1 deletion NBReorderTableView/NBReorderTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ - (void)finishMovingCell
[self.timerToAutoscroll invalidate]; self.timerToAutoscroll = nil;

// Inform the delegate that the reordering will finish
if ([self.delegate respondsToSelector:@selector(tableView:willFinishReorderingCellAtIndexPath:)]) {
if (self.movingIndexPath != nil && [self.delegate respondsToSelector:@selector(tableView:willFinishReorderingCellAtIndexPath:)]) {
[self.delegate tableView:self willFinishReorderingCellAtIndexPath:self.movingIndexPath];
}

Expand Down

0 comments on commit 9c4629f

Please sign in to comment.