An extension that allows you to setup an NSFetchResultsConttroller
as a UITableViewDataSource
or UICollectionViewController
in a single line of code.
self.tableView.dataSource = self.fetchedResultsController
All edits to CoreData will be reflected automatically in any relevent UITableView
s or UICollectionView
s.