0
在我的應用我使用coredata
存儲有關文檔的詳細核心數據數據庫的內容如何NSLog的
這裏是我的代碼
-(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
的值?
@Ravi:我會記住... thanx :) – icodes