[ASDataController] Swap order of section / item in optimized indexpath creation from yesterday :).

This commit is contained in:
Scott Goodson
2016-03-07 12:08:31 -08:00
parent de49e5ec17
commit 9e72679ffd

View File

@@ -148,7 +148,7 @@ NSArray *ASIndexPathsForTwoDimensionalArray(NSArray <NSArray *>* twoDimensionalA
ASDisplayNodeCAssert([subarray isKindOfClass:[NSArray class]], @"This function expects NSArray<NSArray *> *");
NSUInteger itemCount = subarray.count;
for (NSUInteger item = 0; item < itemCount; item++) {
[result addObject:[NSIndexPath indexPathWithIndexes:(const NSUInteger []){item, section} length:2]];
[result addObject:[NSIndexPath indexPathWithIndexes:(const NSUInteger []){ section, item } length:2]];
}
section++;
}