First, Xcode introduction
Xcode is Apple's official IDE for integrated development environments that developers can use to develop applications based on Iphone,ipad,apple watch and Mac platforms. Xcode has the following features:
- One-stop development tools. All Apple applications only need to use Xcode to enable the entire process from development, to testing, to application publishing;
- Visual Programming tools. Visual programming can be realized based on Stroyboard and interface Builder and other tools.
- Integrated debug and testing tools;
- Code Auto-Save and support for source code control (Git);
- Integrated development documentation. The official documentation can be viewed at any time during the development process;
- Support app Packaging and publishing to the app Store.
Ii. Download and install Xcode
Please download the official Xcode from the App Store, although the installation process is slow (about 4Gb), but do not download it on third party platforms.
Third, create an app with Xcode
- Open Xcode and select "Create a new Xcode project";
- Select "Ios–application" and select "Single View app"; Other types of applications are less used in the actual development process;
- Enter the name of the app –product Name,xcode automatically creates the app's identifier –bundle Identifier, which is unique in the App Store and is used to mark a unique app app;
- Select the location where the project is saved.
Iv. introduction of Xcode development interface
The Xcode development interface consists of 5 main areas:
- Toolbar (ToolBar): mainly responsible for the program run debugging, editor function area display/hide;
- Editor Area: Code writing area;
- Navigation Zone (Navigator area): Show project file list
- Debug area: In the program debugging, you can view the object information, and enter the log;
- Common areas (Utilities area): Used to set object properties, add UI controls, and so on.
Xcode use one: about Xcode + Create app