Fetch Data using predicate. Retrieve single value.
- by Mr. McPepperNuts
XYZAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
NSManagedObjectContext *managedObjectContext = appDelegate.managedObjectContext;
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name == %@", entryToSearchFor];
NSEntityDescription *entity =…