Making Connections

Add Navigation Controllers to MainWindow_iPhone.xib and MainWindow_iPad.xib and create a connection from the AppDelegate to the Navigation Controller.

  1. In the left pane, under the iPhone folder, click the MainWindow_iPhone.xib file.
    If you do not see the Navigation Controller in the middle pane, drag it from Objects to the middle pane:
    Xcode Navigation Controller
  2. Under Objects in the middle pane, control-drag from the AppDelegate icon to the Navigation Controller icon to create a navController outlet.

    Objects Icons
  3. Click on the expansion arrow at the bottom of the middle pane to switch to list view, select Navigation Controller > View Controller, and in the Identity Inspector, select SubscribeController in the Class field.

    iphone_SubscribeController_class

    Once the class is selected, the ViewController name in the hierarchy changes to SubscribeController and the connection from the AppDelegate to the Navigation Controller is created.

  4. Repeat these steps to add a navigation controller to MainWindow_iPad.xib.