I am customizing the Core Data ( UIManagedDocument ) model in my AppDelegate and I was curious how I could add a reference to NSManagedObjectContext to my (storyboards) Initial viewController.
I could access it directly in viewControllers viewDidLoad using [ [[UIApplication sharedApplication] delegate] sampleDatabase] managedObjectContext] , and then pass it to additional controllers using prepareForSegue .
I'm just wondering if there is an initial segue (or mechanism) that would allow me to pass (or add) a managed ObjectContext to this initial viewController without having access to it, using the appDelegates sharing instance once inside the controller?
source share