Viewing the SubscribeController View Controller

A view controller 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.

In Xcode, you can create the view controller by creating a new file using the UIViewController subclass. Be sure to indicate With XIB for user interface. Xcode creates the corresponding .h, .m, and .xib files.

  1. In the SUP101 Xcode project, click SubscribeController.m to view the logic for the view controller.
  2. Click SubscribeController.h to view the header file.
Related tasks
Creating the MenuListController
Creating the CustomerListController
Adding the DetailController and Configuring the View