Jump to content

Core Data AppDelegate didFinishLaunchingWithOptions Root View Controller Code Samples

0
  kevlangdo's Photo
Posted Jul 10 2012 09:08 AM

To successfully create the Core Data context, persistence store and model, a specific type of coding is required in the didFinishLaunchingWithOptions method of the AppDelegate class.

For instance, to use a navigation view controller (UINavigationController) you need to set the root view controller as the topViewController.

When using a Single View Controller, you also need to set the root view controller and also set the context object to be used

Finally with the Tab bar controller, the root view controller must be set and the Tab Bar Controller must be added to the window as a subview.

The following tutorial provides detailed instructions for each type of scenario

Core Data AppDelegate didFinishLaunchingWithOptions Sample Code

Tags:
0 Subscribe


0 Replies