Run a fetchRequestwith the following predicate
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self in %@", arrayOfIds];
Full example
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
fetchRequest.entity = myEntityDescription;
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self in %@", arrayOfIds];
fetchRequest.predicate = predicate;
fetchRequest.sortDescriptors = mySortDescriptors;
NSError *error = nil;
NSArray *managedObjects = [self.managedObjectContext executeFetchRequest:fetchRequest error:&error];
[fetchRequest release]; fetchRequest = nil;
source
share