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 that sends a message (the action)
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.
In Xcode, you can create the view controller by creating a new file using the UIViewController subclass. Select With XIB for user interface. Xcode creates the corresponding .h, .m, and .xib files.
In Xcode, you can create the view controller by creating a new file using the UIViewController subclass. Select With XIB for user interface. Xcode creates the corresponding .h, .m, and .xib files.
- In the SUP101 Xcode project, click SubscribeController.m to view the logic for the view controller.
- Click SubscribeController.h to view the header file.
- Viewing the SUP101Appdelegate Files
The SUP101Appdelegate.h and SUP101Appdelegate.m files are created when you create the Xcode project; however, you deleted the automatically generated versions and replaced them with the ones added from the source code ZIP file. - Configuring the SubscribeController View
Use Interface Builder to configure the SubscribeController.xib file and create the user interface. Although the provided XIB file is already configured, you can walk through the steps to see how to create the interface. - Making Connections
Add Navigation Controllers to MainWindow_iPhone.xib and MainWindow_iPad.xib, and create a connection from the AppDelegate to the Navigation Controller.
Comments
Post a Comment