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