Core data 为日期范围内的某一天设置NSPredicate FETCHTLIMIT

Core data 为日期范围内的某一天设置NSPredicate FETCHTLIMIT,core-data,Core Data,我需要让它像 100 items with `date` == 13/01/2017 2 items with `date` == 14/01/2017 50 items with `date` == 15/01/2017 我认为唯一的方法是创建循环并每天执行fetch,以便fetch请求的数量等于给定范围内的天数。另一种解决方案是执行一次提取,然后过滤这个大数组。我说的对吗?对不起,我不明白你的问题。请你重新措辞/澄清一下好吗?我已经改变了我的问题。谢谢-我现在更明白了。但恐怕我认为您

我需要让它像

100 items with `date` == 13/01/2017 
2 items with `date` == 14/01/2017 
50 items with `date` == 15/01/2017 

我认为唯一的方法是创建循环并每天执行fetch,以便fetch请求的数量等于给定范围内的天数。另一种解决方案是执行一次提取,然后过滤这个大数组。我说的对吗?

对不起,我不明白你的问题。请你重新措辞/澄清一下好吗?我已经改变了我的问题。谢谢-我现在更明白了。但恐怕我认为您是对的:您需要运行多个fetch,每天一个,每个都设置fetchLimit。
100 items with `date` == 13/01/2017 
2 items with `date` == 14/01/2017 
50 items with `date` == 15/01/2017 
10 items with `date` == 13/01/2017 
2 items with `date` == 14/01/2017 
10 items with `date` == 15/01/2017