iOS notes-Common files in a project
After creating a new project, there are so many files, here are some of the main ones.
1. File name
(1) appdelegate
UIApplication agent, the app receives interference when it handles system events. For example, to call, memory warning, app launch.
(2) Viewcontroller
Controller, you can create a visual interface in three ways with the xib\storyboard\ code.
This visual interface will be displayed in the Uiwindowz.
(3) Mainstoryboard
Automatically created by the system
(4) Images.xcassets
Pictures used by the storage program
(5) Launchscreen.xib
The interface displayed during program opening
(6) Supporting Files
(6.1) Info.plist
Key Features: All configurations during the entire project run are important. So when we create plist ourselves, we should be careful not to duplicate names.
(6.2) MAIN.M
Key Features: entry for project initiation.
(6.3) Prefix.pch
Key features: Very important files are used to store a number of macros used throughout the project to include header files that can be used throughout the project.
2. Project name + Test
Key Features: Unit testing
3. A number of important objects
UIApplication:
(1) He is a symbol of the application, each application has its own uiapplication, it is a singleton.
(2) is the first object created by an application.
(3) He can perform some application-level operations, such as setting the number of messages applied.
UIWindow:
UIWindow is a special kind of uiview, usually in one app only one Uiwindow,ios program is started, the first view control created is UIWindow, then the controller's view is created, Finally, the controller's view is added to the UIWindow, so the controller's view is displayed on the screen.
Common Files in IOS projects