Core Data Tutorial – NSFetchedResultsController
Core Data is an extremely hot topic, and one of the key difficulties people seem to be having is integrating Core Data with a UITableView. This is where the NSFetchedResultsController comes in.
Marcus Zarra of Cocoa is My Girlfriend and author of the Pragmatic Programmers Core Data book has written an excellent tutorial on Core Data in the January 2010 Issue of Pragpub magazine (PDF link). The tutorial begins on page 24.
In this tutorial Marcus explains how integral NSFetchedResultsController is in keeping the UI updated. He goes through explaining the complicated construction of an NSFetchedResultsController, and it’s usage in a UITableView.
Marcus also goes through the implementation of four NSFetchedResultsController methods that are used to automatically notify the interface that changes have been made, and to update accordingly.
Marcus has posted a full example of NSFetchedResultsController in an RSS reader code on Github.
Be sure to check out the above links, and post any comments below.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can send a Tweet to @maniacdev on Twitter or submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.
-
http://www.cimgf.com Marcus S. Zarra
-
http://www.cimgf.com Marcus S. Zarra
-
http://www.cimgf.com Marcus S. Zarra
-
John
-
John
-
http://www.facebook.com/kostiantyn.sokolinskyi Kostiantyn Sokolinskyi





