回答

1

AFAIK,你不能在MR查詢,而FRC有組。所以可能你需要像這樣的東西:

+ (NSFetchedResultsController *) MR_fetchAllSortedBy:(NSString *)sortTerm ascending:(BOOL)ascending withPredicate:(NSPredicate *)searchTerm groupBy:(NSString *)groupingKeyPath delegate:(id<NSFetchedResultsControllerDelegate>)delegate;;

如果還需要查詢,可以看看這個solution

相關問題