Skip to content

Instantly share code, notes, and snippets.

@shinriyo
Created November 17, 2013 07:13
Show Gist options
  • Save shinriyo/7510366 to your computer and use it in GitHub Desktop.
Save shinriyo/7510366 to your computer and use it in GitHub Desktop.
Core Dataに複雑なやりとり P195
NSManagedObjectContext *moc self[self managedObjectContext];
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescription *description = [[NSEntityDescription entityForName: @"user" inManagedObjectContext:managedObjectCOntext_] init];
[request setEntiry:descriotion];
NSError *error = nil;
NSArray *list = [moc exexuteFetchRequest:request];
MSManagesObject *requestObject = [list objectAtIndex:0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment