Merge pull request #245 from andyscott/wip/fix-ASDataController-reloadSections

Make ASDataController call rowsInSection with the appropriate index
This commit is contained in:
Nadine Salter 2015-01-23 12:28:59 -08:00
commit facfa695b8

View File

@ -282,7 +282,7 @@ static void *kASDataUpdatingQueueContext = &kASDataUpdatingQueueContext;
NSMutableArray *updatedNodes = [[NSMutableArray alloc] init];
[sections enumerateIndexesUsingBlock:^(NSUInteger idx, BOOL *stop) {
NSUInteger rowNum = [_dataSource dataController:self rowsInSection:sections.count];
NSUInteger rowNum = [_dataSource dataController:self rowsInSection:idx];
NSIndexPath *sectionIndex = [[NSIndexPath alloc] initWithIndex:idx];
for (NSUInteger i = 0; i < rowNum; i++) {