IOS learning notes (1) Create the first IOS project under xcode 4.3.2

Source: Internet
Author: User

Since xcode has been upgraded to version 4.X, Chinese translation books only talk about version 3.x, so there will be some minor differences in Project Creation.

After xcode 4, the Project template does not contain window-based application. Here we can select empty application. Example.:

After setting the project name, we can see the following interface:

In this case, we need to create mainwindow. XIB. This is the interface file, which is similar to the initial main. xml file of Android.

In supporting files, create a window-type XIB named mainwindow. XIB, for example:

Okay, it's almost finished. Drag a lable from libray to the interface, and enter some text in the lable:

Finally, do not forget to set the main interface of the application as mainwindow:

Big success! Press command + S to save and click the run icon to runProgram: Of course, don't forget to select the running device as the iPhone =

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.