在我的应用程序中,我coredata
用来存储有关文档的详细信息
这是我的代码
-(void)writeToDatabase:(UIManagedDocument *)newdocument
{
Images *image =[NSEntityDescription insertNewObjectForEntityForName:@"Images" inManagedObjectContext:newdocument.managedObjectContext];
image.album = @"Album 1";
image.date = @"October";
image.share = @"Not shared yet"; }
在上面的代码中
1.Images is the core data entity.
2.I have inserted data in this fashion(temporarily) just to check.
我怎么能NSLog
价值观?