概要 NSFetchedResultsController のインスタンスを作る時に sectionNameKeyPath: へグルーピング条件となるKeyPathを渡すと、簡単に UITableView でグルーピングができる。 例えばこれが こうなる。 sectionNameKeyPath: インスタンス作成時のコードはこんな感じ。 NSFetchedResultsController *aFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:coreDataManager.managedObjectContext sectionNameKeyPath:@"treatedYear" cacheName:@"