I’m using the following code to reach the MOC in my second view controller
if (managedObjectContext == nil)
{
managedObjectContext = [[[UIApplication sharedApplication] delegate] managedObjectContext];
}
I got the above error and I don’t know how to get rid of it!
When doing this, the compiler/Xcode knows your
[[UIApplication sharedApplication] delegate]is an instance ofYourAppDelegate, so it knows it has themanagedObjectContextproperty.