IOS Development Information

Source: Internet
Author: User
Tags home screen

IOS is an operating system running on iPhone, iPod Touch, and iPad devices. It manages device hardware and provides local applications for mobile phones.ProgramTo provide the basic technology. Different operating systems have different system applications, such as phone, mail, and Safari, which can provide users with standard system services.

The iPhone SDK contains the tools and interfaces required to develop, install, and run local applications. Local applications are built using the IOS system framework and objective-C language and run directly on iOS devices. It is different from a Web application. One is that it is located on the installed device, and the other is that it can run regardless of whether there is a network connection. Local applications have the same status as other system applications. Both local applications and user data can be synchronized to the user's computer through iTunes.


IOS Architecture

The architecture of IOS is similar to that of Mac OS. At the advanced level, IOS acts as an intermediary between underlying hardware and applications (Applications displayed on the screen), as shown in Figure 1-1. The application you created cannot directly access the hardware, but must interact with the system interface. In turn, the system interface deals with appropriate drivers. This abstraction prevents your applications from changing the underlying hardware.

Figure 1-1 The application is on the upper layer of IOS


Note: Although applications are usually isolated from the underlying hardwareCodeSome differences between devices still need to be considered. For example, iPad and iPod Touch cannot open a URL containing a phone number, But iPhone can.

 

The IOS implementation can be seen as a collection of multiple layers ("game KIT framework" contains an introduction to these layers). The underlying layer provides basic services for all applications, senior management includes some complicated and clever services and technologies.

Figure 1-2 IOS Layer

When writing code, you should try to use the high-level framework instead of the underlying framework. The high-level framework provides object-oriented abstraction for underlying structures. These abstractions can reduce the number of lines of code to be written, and encapsulate complex functions such as socket and thread to make code writing easier. Although the high-level framework abstracts the underlying structure, it does not block the underlying technology. If the high-level framework does not provide interfaces for some functions of the underlying framework, developers can directly use the underlying framework.

Subsequent sections of this document describe the technologies and frameworks contained in each layer.


What does the iPhone SDK contain?

All interfaces, tools, and resources required for developing IOS applications on Intel-chip Macintosh computers are included in the iPhone SDK.

Apple released most of the system interfaces to the special data packets such as the framework. A framework is a directory that contains a dynamic shared library and resources required to use the library (such as header files, images, and help applications ). To use a framework, you need to link it to the application project, similar to using other shared libraries. In addition, you need to tell the development tool where to find the framework header file and other resources.

In addition to the framework, Apple also publishes some technologies in the form of a standard shared library. Because IOS is UNIX-based, many underlying technologies of the operating system are sourced from open-source technologies, and many interfaces of these technologies can be accessed from the standard library and Interface directory.

The SDK also contains the following important components:

Xcode tool-Provides IOS application development tools, including the following key applications:

Xcode is an integrated development environment that manages application projects. You can use it to edit, compile, run, and debug code. Xcode also integrates many other tools, which are the main applications used during development.

Interface builder-a tool that assembles user interfaces visually. The interface objects created through interface builder will be saved to resource files in a specific format and loaded to the application at runtime.

Instruments-runtime Performance Analysis and debugging tools. You can use instruments to collect the behavior information when the application is running and use the information to identify possible problems.

IPhone Simulator-a Mac OS X platform application that simulates the IOS technology stack so that you can test IOS applications on Intel-based Macintosh computers.

IOS Reference Library-the SDK contains IOS reference documents by default. In addition, if the document library is updated, the update will be automatically downloaded to the local device. Select help> developer documentation to view the reference library.

The SDK provides the software required to write applications, and xcode and instruments allow you to directly interact with the bound device, run and debug the code on the target hardware. If you need to develop on the actual device, please join the paid iPhone developer program of Apple and configure the device for development purpose. For more information about the iPhone developer program, visit http://developer.apple.com/iphone/program.

If you need to know how to install the iPhone SDK and how to use the iPhone SDK to develop IOS applications, refer to the iOS development guide. If you want to learn more about the IOS framework and find the underlying system library, see "iOS framework ".


What applications can you create on iOS?

You can run two different types of custom applications on the device: web applications and local applications. Web applications combine HTML, stacked style sheets, and JavaScript code to implement interactive applications. These applications exist on Web servers, it is transmitted to the user's device over the network and runs on the Safari browser. Local applications are directly installed on the device and run without network connection.

The iPhone SDK can only be used to create local applications that are displayed on the home screen of a device. It does not support creating other types of code, such as drivers, frameworks, and dynamic libraries. If you want to integrate a framework or dynamic library into an application, you should statically link it to the application execution file during the blockchain project.


How to Use the Reference Library?

The IOS Reference Library contains various documents, sample code, and tutorials, which can help you write applications. However, the reference library contains thousands of pages, which are described in the first step and covered in the API reference documentation. Therefore, understanding how to find the required information is an important step in the development process. Reference libraries use several techniques to organize content to make it easier to browse.

You can access the IOS reference library from the apple developer website or from xcode. You can select help> developer documentation in xcode to display the xcode document window on the screen. This window is the core of iOS development information. You can browse documents and perform searches, and add bookmarks for documents that may be read later. Each document has already been categorized by its content, which can facilitate updates and make the search scope more accurate to relevant documents.

When you install the iPhone SDK, xcode automatically installs a document set containing the IOS reference library for you. (Xcode will automatically download document updates for you, but you can cancel this action in preference settings .) The IOS Reference Library contains a lot of information. Therefore, it is of great significance to understand its typographical design. Figure 1-3 shows the master of the Reference Library in the xcode document window. The toolbar at the top of the page contains the search box and buttons, which can be used to navigate to other installed document sets or created bookmarks. You can browse documents by topic, framework, or other resource types you are looking for, or use a filter to control the document list to reduce the displayed document set.

Figure 1-3 IOS Reference Library


Important: IOS reference library content may not be the latest, you can access the latest documentation, release minutes, technical minutes, technology from the iPhone Development Center (http://www.apple.com.cn/developer/iphone, technical Q & A and sample code. All documents are in HTML format, and most of them are in PDF format.

 

The Reference Library provides a large amount of information, which is very troublesome when writing code. To help you quickly find specific information, xcode provides you with the quick Help Window 1-4. This window displays information related to a specified symbol, including its syntax, description, and SDK version that can use the symbol. In addition, this window displays the relevant documentation and sample code of the symbol. Click the link in the window to access the corresponding resources in the reference library. To display the quick help window, press and hold the option key and double-click a symbol in the xcode editing window.

Figure 1-4 quick help window in xcode

For more information about the document window and quick help window, see the xcode workspace guide.

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.