私のアプリでは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
値を取得できますか?