This article is a case study of iPhone multi-view development and WebService Client technology implementation. This article uses a simple example to describe the multi-view development of the iPhone.
1. Create an iPhone Project
Open XCode, create an IPhone project, and select the "window-based Application" template. The project name is tentatively set to shouji138. The effect is as follows:
The following page is displayed:
2. Add the ViewController class for the control view: SwitchViewController;
Here, a ViewController is used to take charge of the view jump of the entire program, which makes it easy to control.
Right-click "Classes" on the left side of XCode and choose "Add"> "New File... ", select" Cocoa Touch Class "->" UIViewController subclass "and name it SwitchViewController, for example:
3. Add the control class FirstViewController of the first view
Add the first view control class named FirstViewController. The method is the same as above, for example:
4. Add the first view, FirstView. xib
Add a View File, create a file on Resources, select "User Interface"-> "View XIB", and enter the name "FirstView", for example: