IPhone multi-view development case (1)

Source: Internet
Author: User

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:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.