I still had to mention the iphone App development tool before I started, and of course I didn't touch the iphone developer or any Apple device, so I only knew Xcode was the most professional iOS development tool, and now it's free, Heard before the need to pay to install, your Mac system should be installed after the AppStore, from the inside of the free area should be able to find, installed on the line, just as if it takes a little time, not your network is not good, should be the application is not in the domestic server, download quite slow.
Once installed, the boot icon should appear automatically on the dock, and if not, you can drag it from the application to your dock for easy use.
Let's start by creating the first application to get to know Xcode, launch your xode will display the Welcome screen, if you have already created the app, then the right side will display the previously found iOS app list, now we choose Create a new Xcode project can be
In the next because we want to learn iOS development, choose to choose iOS under the application, the right has a variety of templates, of course, we start from the simplest, choose Singleviewapplication, and then next
There are several items that need to be filled out in this interface, namely:
Product Name: Products, you can fill in, you can express the meaning of the application is good, such as QQ music, drip taxi
Organization Name: organization name, optional
Company Identifier: Corporate identification code
Bundle Identifier: Consists of company identifier+product name, the personal feeling is the application of the identification code, should be the same as the Android package is the role of it, temporarily do not control it
Devices: Here are three options, namely Iphone,ipad, general, if your application for both devices can choose generic, otherwise choose one of the best, choose iphone here
Next will let you choose to save the path, I built a separate MacApp directory to store, it is recommended that you
Click Create after the application of the development of the link, here first to understand the area, basically divided the middle and lower, the left and right, in most cases is editable area, proportional coding, settings, and so on, the left area is your project to use the file tree, is the initial state after the establishment of the project, Of course, the organizational structure of the file tree should be clear, but we from the MVC point of view, or can be collated, the next one.
Here a project is created, this time we can click on the 1 area of run, we can run our program, of course, this time the result will be a blank interface, there is nothing, in 2 of the area can choose your application is running on what device, if you connect with the real machine, Your app can be published to a real machine and other options are executed in the emulator.