Skip to content

Instantly share code, notes, and snippets.

View azonov's full-sized avatar

Andrey azonov

  • DataArt
  • Russia
View GitHub Profile
@azonov
azonov / gist:0ed8c433aac661344024
Created December 7, 2015 14:01 — forked from MrRooni/gist:4988922
UITableView and NSFetchedResultsController: Updates Done Right
@interface SomeViewController ()
// Declare some collection properties to hold the various updates we might get from the NSFetchedResultsControllerDelegate
@property (nonatomic, strong) NSMutableIndexSet *deletedSectionIndexes;
@property (nonatomic, strong) NSMutableIndexSet *insertedSectionIndexes;
@property (nonatomic, strong) NSMutableArray *deletedRowIndexPaths;
@property (nonatomic, strong) NSMutableArray *insertedRowIndexPaths;
@property (nonatomic, strong) NSMutableArray *updatedRowIndexPaths;
@end