The Core Data uses KVC to store and retrieve data from its managed objects.
NSManagedObject supports the key value methods
setValue:forKey: for setting and retrieving attribute values from the managed object respectively.
For example, let's say we have a managed object (Customer) and it has an attribute called
name; we can obtain the value of the name attribute with the following:
NSString *custName = [managedObject valueForKey:@"name" ];
The value of the attribute
name is retrieved from the managed object and is assigned to the NSString instance
Similarly, the code used in the
cellForRowAtIndexPath method in the