Classes

The following classes are available globally.

  • This class is facade for accessing shared instance of AEStack (private class which is all about the Core Data Stack).

    See more

    Declaration

    Swift

    public class AERecord
  • Swift version of class originaly created for Stanford CS193p Winter 2013.

    This class mostly just copies the code from NSFetchedResultsController documentation page into a subclass of UITableViewController.

    Just subclass this and set the fetchedResultsController property. The only UITableViewDataSource method you’ll HAVE to implement is tableView:cellForRowAtIndexPath:. And you can use the NSFetchedResultsController method objectAtIndexPath: to do it.

    Remember that once you create an NSFetchedResultsController, you CANNOT modify its properties. If you want new fetch parameters (predicate, sorting, etc.), create a NEW NSFetchedResultsController and set this class’s fetchedResultsController property again.

    See more

    Declaration

    Swift

    public class CoreDataTableViewController: UITableViewController, NSFetchedResultsControllerDelegate
  • Same concept as CoreDataTableViewController, but modified for use with UICollectionViewController.

    This class mostly just copies the code from NSFetchedResultsController documentation page into a subclass of UICollectionViewController.

    Just subclass this and set the fetchedResultsController. The only UICollectionViewDataSource method you’ll HAVE to implement is collectionView:cellForItemAtIndexPath:. And you can use the NSFetchedResultsController method objectAtIndexPath: to do it.

    Remember that once you create an NSFetchedResultsController, you CANNOT modify its properties. If you want new fetch parameters (predicate, sorting, etc.), create a NEW NSFetchedResultsController and set this class’s fetchedResultsController property again.

    See more

    Declaration

    Swift

    public class CoreDataCollectionViewController: UICollectionViewController, NSFetchedResultsControllerDelegate