Classes
The following classes are available globally.
-
This class is facade for accessing shared instance of
See moreAEStack(private class which is all about the Core Data Stack).Declaration
Swift
public class AERecord
-
Swift version of class originaly created for Stanford CS193p Winter 2013.
This class mostly just copies the code from
NSFetchedResultsControllerdocumentation page into a subclass ofUITableViewController.Just subclass this and set the
fetchedResultsControllerproperty. The onlyUITableViewDataSourcemethod you’ll HAVE to implement istableView:cellForRowAtIndexPath:. And you can use theNSFetchedResultsControllermethodobjectAtIndexPath:to do it.Remember that once you create an
See moreNSFetchedResultsController, you CANNOT modify its properties. If you want new fetch parameters (predicate, sorting, etc.), create a NEWNSFetchedResultsControllerand set this class’sfetchedResultsControllerproperty again.Declaration
Swift
public class CoreDataTableViewController: UITableViewController, NSFetchedResultsControllerDelegate
-
Same concept as
CoreDataTableViewController, but modified for use withUICollectionViewController.This class mostly just copies the code from
NSFetchedResultsControllerdocumentation page into a subclass ofUICollectionViewController.Just subclass this and set the
fetchedResultsController. The onlyUICollectionViewDataSourcemethod you’ll HAVE to implement iscollectionView:cellForItemAtIndexPath:. And you can use theNSFetchedResultsControllermethodobjectAtIndexPath:to do it.Remember that once you create an
See moreNSFetchedResultsController, you CANNOT modify its properties. If you want new fetch parameters (predicate, sorting, etc.), create a NEWNSFetchedResultsControllerand set this class’sfetchedResultsControllerproperty again.Declaration
Swift
public class CoreDataCollectionViewController: UICollectionViewController, NSFetchedResultsControllerDelegate
View on GitHub
Classes Reference