I would like to construct a NSPredicate or NSSortDescriptor (Core Data search) that is based on the content of an array.
The array will consists of userId:s in the right order:
[1, 2, 5, 3];
I would like to present the result for my NSFetchedResultsController in the same order.
So I will:
userIds.Is this possible to do, and how can I do it?
I think that is not possible. Sorting the results of a fetch request (for a SQLite-based store) is done on the SQLite level, and can use only persistent attributes stored in the database. The sort descriptor cannot use Objective-C functions or variables.
So either
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With