You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implement tableView: targetIndexPathForMoveFromRowAtIndexPath: toProposedIndexPath: in table view delegate
try to drag off the bottom of the table
crash
The crash is in HPReorderTableView.m, - (void)updateCurrentLocation:(UILongPressGestureRecognizer *)gesture. toIndexPath is nil which results in a crash. A possible fix is:
if ([self.delegate respondsToSelector:@selector(tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:)])
{
if (toIndexPath == nil) {
return;
}
toIndexPath = [self.delegate tableView:self targetIndexPathForMoveFromRowAtIndexPath:_reorderInitialIndexPath toProposedIndexPath:toIndexPath];
}
The text was updated successfully, but these errors were encountered:
To reproduce:
tableView: targetIndexPathForMoveFromRowAtIndexPath: toProposedIndexPath:
in table view delegateThe crash is in HPReorderTableView.m,
- (void)updateCurrentLocation:(UILongPressGestureRecognizer *)gesture
.toIndexPath
is nil which results in a crash. A possible fix is:The text was updated successfully, but these errors were encountered: