I have an array of ids. I want to fetch core data entity for the items in the ids array. How can we implement that using NSFetchRequest
?
Use NSPredicate
fetchRequest.predicate = NSPredicate(format: "itemId IN %@", itemIds)
Instead of itemId
set your actual id property name. Now perform a fetch with this fetch request
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