IOS platform development tool xcode
Xcode is a development tool set provided by Apple. It provides functions such as project management, code editing, execution Program Creation, code-level debugging, code library management, and performance adjustment. The core of the xcode tool set is the xcode Program, which provides a basic source code development environment. This is required for iOS application development.
AD:
To develop IOS applications, you need a computer installed with xcode and Mac OS X. Xcode is a development tool set provided by Apple. It provides functions such as project management, code editing, execution Program Creation, code-level debugging, code library management, and performance adjustment. The core of this tool set is the xcode Program, which provides a basic source code development environment. However, xcode is not the only tool you use. The following section describes the tools required to create an iPhone application.
Xcode
The focus of your development experience is the xcode program. Xcode is an integrated development environment (IDE) that provides all the tools that allow you to create and manage your iPhone project and source code and build your code into executable files, run and debug your code on an iPhone simulator or a real device.
Create a new iPhone application, starting from creating a new project in xcode. A project manages all information related to your program, including source code, build settings, and rules that need to be put together. The core of each xcode project is the project window, as shown in figure 1. This window provides a way to quickly access all key elements of your program. The file and File Group lists are the places where you manage files in your project, including your source code files and Build targets created from these source code files. The toolbar provides access to common tools and commands. The Detail Panel provides a configurable space for your project's work. Other parts of the project window provide additional project information.
Figure 1 xcode project window
Xcode contains an advanced text editor that supports many features, such as code completion, syntax highlighting, code folding, and in-line error warning prompts. The xcode build system provides default settings and allows you to set the environment as needed. If you need documents, the research assistant can provide documents related to the content. The xcode document window allows you to browse and search for information.
When you build an application in xcode, you can choose to create an iPhone simulator or an iPhone device. The simulator provides a local environment for testing applications and ensures that your program behavior fully meets your needs. When you are satisfied with the basic behavior of the program, you can tell xcode to build it and then run it on the iPhone and iPod Touch connected to your computer. Running a program on the device provides the ultimate test environment, and xcode can implant the built-in debugger into the code running on the device.
Figure 2 run the project from xcode
For more information about building projects on iOS, see the development environment section in the IOS developer guide.
Interface Builder)
The interface builder is a tool used to visually assemble the application user interface. With the interface builder, you can drag and drop the preset components to assemble your program window. Components include standard system controls, such as selectors, text boxes, buttons, and custom views used to display the views provided by the program. When you place components in a window, you can move them by dragging them, use the viewer to modify their attributes, and establish a connection between these objects and your code. When the interface meets your requirements, you can save the content as a NIB file, which is a custom resource file format. The NIB file created in the interface builder, including all the information required by the uikit framework to recreate the same object in the application during runtime. When the NIB file is loaded, the version of all objects stored in the file will be created, strictly following the configuration in the interface builder. The program also uses the connection information you specified to establish a connection between the newly created object and the existing object in the program. These connections provide pointers to the NIB file objects for your code, as well as information required for communication between objects and user actions in the code.
In general, the interface builder saves a lot of time to create a program user interface for you. The interface builder saves on creation, and configures and locates the custom code required for the objects that constitute the user interface. Because it is a visual editor, you can see the same interface as during running.
Instruments
To ensure that your software has the best user experience, the instruments environment can help you analyze the performance of your iPhone applications running on simulators or devices. Instruments can obtain data from running applications and present the data as a graph called a timeline. You can obtain data about program memory usage, disk activity, network activity, and graphic performance. The timeline view can display all these different types of information one by one, allowing you to associate all the activities of the program (analysis), not just (observed at a time) actions in a certain field. For more information, see the detailed examples obtained by instruments.
Figure 3 use instruments to tune your application
In addition to the timeline view, instruments also provides other tools to help analyze the behavior of time-based programs. For example, the instruments window allows you to save the running data multiple times, so that you can find whether the program performance is improved or you need to continue to work hard. You can save the running data in the instruments document and open them at any time.