Я разрабатываю приложение, которое использует Core Data. В одном UITableView я хочу отобразить список моих объектов, отсортированных по сохраненной дате объектов. Когда я это сделаю:
fetchedResultsController = [[NSFetchedResultsController alloc]
initWithFetchRequest:fetchRequest
managedObjectContext:managedObjectContext
sectionNameKeyPath:@"date"
cacheName:nil];
Я получаю для каждого объекта новый раздел, потому что этот код также группирует даты в соответствии с секундами. Но мне нужен список объектов, сгруппированных по дате, но только по дням, месяцам и годам. Это возможно и как?
Большое спасибо за вашу помощь!!;)