[ASCollectionView] Add Support for Interactive Reordering (#2221)

[ASTableView] Add Support for Interactive Reordering
This commit is contained in:
Adlai Holler
2016-09-14 22:31:04 -07:00
committed by GitHub
parent d1d25a770c
commit 4cf571c830
6 changed files with 55 additions and 0 deletions

View File

@@ -898,6 +898,13 @@ NSString * const ASDataControllerRowNodeKind = @"_ASDataControllerRowNodeKind";
return _externalCompletedNodes ? : _completedNodes[ASDataControllerRowNodeKind];
}
- (void)moveCompletedNodeAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath
{
ASDisplayNodeAssertMainThread();
ASMoveElementInTwoDimensionalArray(_externalCompletedNodes, indexPath, newIndexPath);
ASMoveElementInTwoDimensionalArray(_completedNodes[ASDataControllerRowNodeKind], indexPath, newIndexPath);
}
#pragma mark - Dealloc
- (void)dealloc