Adding the SubscribeController View Controller

Goal: Create a view controller that functions as the root view screen for the SUP101 mobile application.

When you create the user interface, you assign a target action to a control object—in this example a Subscribe button so that a message (the action) is sent to another object (the target) in response to a user event, for example, a touch on the button. The view controller manages and configures the view when asked.

  1. In the SUP101 Xcode project, select File > New > New File.
  2. Select UIViewController subclass and click Next.
  3. Select UIViewController in the Subclass of field, select With XIB for user interface, and then click Next.
  4. Enter SubscribeController in the Save as field and click Save.
    The files SubscribeController.h, SubscribeController.m, and SubscribeController.xib are created in the Project Navigator.
Related tasks
Adding the CustomerListController
Adding the DetailController