Common files in iOS projects, ios Projects

Source: Internet
Author: User

Common files in iOS projects, ios Projects

IOS notes-common files in projects

 After creating a new project, there are so many files. The following describes the main items.

1. File Name

(1) AppDelegate

The proxy of the UIApplication that processes system events when the app receives interference. For example, phone calls, memory warnings, and application startup ..

(2) ViewController

Controller. You can use xib \ storyboard \ code to create a visual interface.

This visual interface will be displayed in UIWindowz.

(3) MainStoryboard

Automatically created by the System

(4) Images. xcassets

Store Pictures used by the program

(5) LaunchScreen. xib

Interface displayed when the program is enabled

(6) Supporting Files

(6.1) Info. plist

Main function: All configurations during the entire project running are very important. Therefore, do not duplicate the names when creating a plist.

(6.2) main. m

Main function: entry for project startup.

(6.3) Prefix. pch

Main functions: Very important files are used to store macros used throughout the project and include header files that can be used throughout the project.

2. Project name + Test

Main functions: Perform unit tests

 

3. Some important objects

UIApplication:

(1) It is a symbol of an application. Every application has its own UIApplication, which is a singleton.

(2) is the first object created by the application.

(3) He can perform some application-level operations, such as setting the number of messages of an application.

 UIWindow:

UIWindow is a special type of UIView. Generally, only one UIWindow exists in an app. After the iOS program is started, the first view control created is UIWindow. Then, the view of the controller is created, add the view of the Controller to the UIWindow, so the view of the controller is displayed on the screen.

 

 

 

 

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.