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.