Core Data Group By Monthly and Sum
问题 Is there any way to GROUP BY core data based on its month then SUM its properties? I have data like this ------------------------ date | amount ------------------------ 30-08-2017 | 124000000 28-10-2017 | 124000000 16-10-2017 | 124000000 14-12-2017 | 124000000 20-12-2017 | 124000000 ------------------------ I just need to show one latest year, so I created my fetch request like this NSDate *now = [NSDate date]; NSDate *oneYearAgo = [now addYears:-1]; NSEntityDescription *entity =