mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
[ASDataController] Swap order of section / item in optimized indexpath creation from yesterday :).
This commit is contained in:
@@ -148,7 +148,7 @@ NSArray *ASIndexPathsForTwoDimensionalArray(NSArray <NSArray *>* twoDimensionalA
|
|||||||
ASDisplayNodeCAssert([subarray isKindOfClass:[NSArray class]], @"This function expects NSArray<NSArray *> *");
|
ASDisplayNodeCAssert([subarray isKindOfClass:[NSArray class]], @"This function expects NSArray<NSArray *> *");
|
||||||
NSUInteger itemCount = subarray.count;
|
NSUInteger itemCount = subarray.count;
|
||||||
for (NSUInteger item = 0; item < itemCount; item++) {
|
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++;
|
section++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user