I have this code to jump to a second storyboard
UIStoryboard *secondStoryBoard = [UIStoryboard storyboardWithName:@"SpaceView" bundle:nil];
// Load the initial view controller from the storyboard.
NRGSpacesNavController *nav = [secondStoryBoard instantiateInitialViewController];
nav.managedObjectContext = self.managedObjectContext;
NRGSpacesViewController *spacesController = [nav.viewControllers firstObject];
spacesController.space = space;
[self presentViewController:nav animated:YES completion:nil];
the problem is the controller being instantiated on that second storyboard needs the managedObejectContext for it's container views. The only thing that loads before prepareForSegue is the actual init method. But I can seem to add the context on the init method. ViewDidLoad and anything else is actually too late. I would like to keep the storyboards if I can, but would be ok doing everything programmatically
I tried adding the context to the nag controller as you can did it doesn't work. The context is nil.
Thanks for the help any ideas welcome.