Getting sectionNameKeyPath to work with CoreData/UITableViewController

Posted by Elon on Stack Overflow See other posts from Stack Overflow or by Elon
Published on 2010-05-23T08:47:38Z Indexed on 2010/05/23 8:50 UTC
Read the original article Hit count: 614

  1. In my AppDelegate I create an NSFetchedResultsController with sectionNameKeyPath set to @"group".
  2. In viewWillAppear in my TableViewController I performFetch, then call a method called findGroups.
  3. findGroups does some complicated analysis of the entire dataset to identify groups, then sets the "group" transient property on each object to the correct string value. I can see with NSLog that these are all set correctly and in coherent groups.

But, tinker as I may, my cells are shown in a single section with the title of the first group. Any ideas?

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0

Related posts about uitableviewcontroller