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:
    MainWindow_iPhone.xib file
  2. Under Objects in the middle pane, Ctrl-drag from the AppDelegate icon to the Navigation Controller icon to create a navController outlet.

    Objects - App Delegate icon with Navigation Controller
  3. Click 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.

    Root View Controller
    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 steps 1 – 3 to add a navigation controller to MainWindow_iPad.xib.

Comments

Popular posts from this blog

How to draw an overlay on a SurfaceView used by Camera on Android?

Android TCP Connection Chat application

Create EditText with dropdown in android