Get the entity from the master data:
VVdAppDelegate *delegate = (VVdAppDelegate *)[[UIApplication sharedApplication] delegate]; NSManagedObjectContext *managedObjectContext = [delegate managedObjectContext]; NSEntityDescription *entityDescriptionDelegate = [NSEntityDescription entityForName:@"entityName" inManagedObjectContext:managedObjectContext]; NSFetchRequest *requestData = [[NSFetchRequest alloc] init]; [requestData setEntity:entityDescriptionDelegate]; NSError *error;
If more than NSManagedObject exists
NSArray *objectsArray = [managedObjectContext executeFetchRequest:requestData error:&error]; for (NSManagedObject *object in objectsArray) {
source share