代码段

1 // obtain the managed object context from the application delegate

2 id delegate = [[UIApplication sharedApplication] delegate];

3 self.managedObjectContext = [delegate managedObjectContext];

 

你可能感兴趣的:(代码)