In my app I am using coredata to store details about the document
Here’s my code
-(void)writeToDatabase:(UIManagedDocument *)newdocument
{
Images *image =[NSEntityDescription insertNewObjectForEntityForName:@"Images" inManagedObjectContext:newdocument.managedObjectContext];
image.album = @"Album 1";
image.date = @"October";
image.share = @"Not shared yet"; }
In the above code
1.Images is the core data entity.
2.I have inserted data in this fashion(temporarily) just to check.
How can I NSLog the values?
Try this,
Assume the attribute values in the coredata are Strings
Hope it helps.