From 8cfd951f42347ebc74e2674627ae7553fe0eee2a Mon Sep 17 00:00:00 2001 From: Scott Goodson Date: Sat, 5 Mar 2016 20:22:18 -0800 Subject: [PATCH] [ASDataController] If app code issues edit commands before first reload, ignore them, as UIKit will call -reloadData. --- AsyncDisplayKit/Private/ASMultidimensionalArrayUtils.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKit/Private/ASMultidimensionalArrayUtils.mm b/AsyncDisplayKit/Private/ASMultidimensionalArrayUtils.mm index 579544d02f..9916e3d624 100644 --- a/AsyncDisplayKit/Private/ASMultidimensionalArrayUtils.mm +++ b/AsyncDisplayKit/Private/ASMultidimensionalArrayUtils.mm @@ -147,8 +147,8 @@ NSArray *ASIndexPathsForTwoDimensionalArray(NSArray * twoDimensionalA for (NSArray *subarray in twoDimensionalArray) { ASDisplayNodeCAssert([subarray isKindOfClass:[NSArray class]], @"This function expects NSArray *"); NSUInteger itemCount = subarray.count; - for (int item = 0; item < itemCount; item++) { - [result addObject:[NSIndexPath indexPathForItem:item inSection:section]]; + for (NSUInteger item = 0; item < itemCount; item++) { + [result addObject:[NSIndexPath indexPathWithIndexes:(const NSUInteger []){item, section} length:2]]; } section++; }