// Init your fetchRequest
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
NSEntityDescription *entityDescription = [NSEntityDescription entityForName:@"entityName" inManagedObjectContext:yourManagedObjectContext];
// create the relation between request and the created entity
[fetchRequest setEntity:entityDescription];
// Set your predicate for this request
NSPredicate *somePredicate = [NSPredicate predicateWithFormat@"%K == %@", @"name", @"John"];
[fetchRequest setPredicate:somePredicate];
// Pushing the results into a array
NSError *error = nil;
NSArray *fetchResults = [yourManagedObjectContext executeFetchRequest:fetchRequest error:&error];
[fetchRequest release];
This example fetch all records from entity "entityName
", which "name
" attribute is equal to "John
"