Skip to content

Instantly share code, notes, and snippets.

View SwiftArchitect's full-sized avatar

Xavier Schott SwiftArchitect

View GitHub Profile
@kristopherjohnson
kristopherjohnson / NSFetchedResultsControllerDelegate_Boilerplate.swift
Created September 12, 2014 19:41
Swift boilerplate NSFetchedResultsControllerDelegate methods for a UITableViewController subclass
// MARK: NSFetchedResultsControllerDelegate
func controllerWillChangeContent(controller: NSFetchedResultsController) {
self.tableView.beginUpdates()
}
func controller(controller: NSFetchedResultsController,
didChangeObject anObject: AnyObject,
atIndexPath indexPath: NSIndexPath?,
forChangeType type: NSFetchedResultsChangeType,