How to share a ManagedObjectContext when using UITabBarController
问题 I have an iPhone application that has a MainWindow.xib holding a UITabBarController, which in turn has a UINavigationController and a custom UIViewController subclass in its ViewControllers array. The root view controller for the UINavigationController and the custom view controller are both loaded from other xib files. The app uses core data, the stack is initialized in the app delegate (as per the convention). The app delegate adds the UITabBarController to the window: - (void