IPhone development BASICS (2)-starting with the iPhone SDK

Source: Internet
Author: User

Author: Yi Feiyang

In this case, we will explain some basic settings from the SDK required for actual development.

What is the iPhone SDK?

The last time we briefly described the iPhone application development environment Xcode. Xcode was originally an application development tool on Mac. Here it only imports the SDK required to develop the iPhone application. It is precisely because the iPhone SDK is installed that we can use Cocoa Touch through Xcode and use the "iPhone Simulator" under MAC in development 」.

It doesn't matter if you haven't installed Xcode on your MAC. While installing the iPhone SDK, Xcode will be installed together.

Download the iPhone SDK

The iPhone SDK can be downloaded free of charge by Apple Developer Connection. You need to register an "Apple ID" before downloading 」. If you used iTunes to download music or buy products online using the Apple Store, you can use the previously registered "Apple ID.

 

Apple Develper Connection

 

Download the iPhone SDK

Register an Apple ID

 

If you already have an Apple ID. Click Log in. Otherwise, click Create Apple ID 」

 

You are advised to enter necessary information for registration in English.

Log on to the iPhone Dev Center

You can log on to the iPhone Dev Center with your new Apple ID.

 

After logging on, you can download the iPhone SDK.

Install the iPhone SDK

After the download is complete, start the installation. Open the downloaded file and double-click the "iPhone SDK. mkpg" file.

 

Install the iPhone SDK

Next, you only need to confirm all the way, and the next step is complete. Next, start Xcode.

Use Xcode to create a program

Click Developer → Applications → Xcode. app on the hard disk to start Xcode.

 

Location of Xcode

Create a project

Select "file"> "create new project..." from the menu of Xcode ...」. Select View-Based Application in the template 」.

 

Select "iPhone OS"> "Application" on the left 」.

 

Xcode (3.1.2)

In the preceding window, you can view, edit, or start Interface Builder 」.

Compilation and execution

Next, click compile. After compilation, the iPhone Simulator ~ is automatically opened ~」. For example:

Vcg = "src =" http://www.bkjia.com/uploads/allimg/131210/1R542M02-9.png "/>

 

IPhone Simulator

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.