Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Commit e7e101b

Browse files
dloIgnacio Romero Zurbuchen
authored andcommitted
migrate to Objective-C 2.0 subscripting (#310)
1 parent 3ef14c8 commit e7e101b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Examples/Countries/Countries/MainViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger
253253
return 0;
254254
}
255255

256-
id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController sections] objectAtIndex:section];
256+
id <NSFetchedResultsSectionInfo> sectionInfo = [self.fetchedResultsController sections][section];
257257
return [sectionInfo numberOfObjects];
258258
}
259259

Examples/Countries/Pods/NSManagedObjectContext-Hydrate/Source/NSManagedObjectContext+Hydrate.m

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)