IOS Study Notes (2) -- Hello IOS

Source: Internet
Author: User

I wrote about how to build the iOS development environment. I just mentioned how to install Xcode. Here I want to add it. Click to download the dmp file of Xcode. After a while, Figure 1 is displayed (drag Xcode to Applications) you can drag to Application and find the Xcode icon in Finder-Application-Xcode. Click Xcode chart to go to the Development page.

Figure 1 (drag Xcode to Applications)



After installing Xcode, familiarize yourself with the Xcode interface (this figure is displayed on the Internet ):


From the Perspective, Xcode is very similar to Visual Studio for windows phone development and Eclipse for Android development. If you switch from those two directions to iOS development, you will soon be familiar with it.

Create an iOS project:

1. Open XCode, select File> New Project, select iOS> Application> Single View Application, and click Next, as shown in:

We can see that seven types of projects can be created. I am also a beginner. I cannot tell them their differences one by one. I will try again when I become familiar with them.


2. Fill in the application information


Product Name: Project Name;

Organization Name: Organization Name. Generally, the computer Name is displayed;

Company Identifier: Company Identifier. Enter a unique Identifier here. You can also modify the Identifier in the project;

Class Prefix: the default Class Prefix. To avoid confusion with other classes, you are advised to enter a Prefix name. By default, all uppercase letters are used. leave it blank;

Device: the Device type. You can select "iPhone", "iPad", or "Universal" (generic, supporting both iPhone and iPad );

Storyboard: Xcode 4. the new feature of x is an extension upgrade of the previous version of xib, which simplifies the uidesign of the program. Note: Storyboard-based applications can only run on devices of iOS5 or later versions.

ARC: it is a new feature of Xcode 4.x. for iOS programmers of previous versions, every alloc object will subconsciously go to release, which is a very annoying thing. Now with ARC, everything becomes simpler, and programmers can focus more on the performance of their applications.

Include Unit Tests: the test package is included when a project is generated.

Generate a project: The project structure is as follows:

Select MainStoryboard_iPhone.storyboard. Initially, it is blank. Select the Label in the lower right corner, double-click the Label, modify the Label, and click the run button on the tab. The simulator displays Hello iOS, but does not write a line of code. Xcode development tools are powerful.



/**

* @ Author Zhang xingye * http://blog.csdn.net/xyz_lmn* iOS entry group: 83702688

* Android Development Group: 241395671 * my Sina Weibo:@ Zhang xingye TBOW

*/

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.