[App app]
Chinese name: default
Foreign Name: Default
Pinyin: Quēshěng
Explanation: System default State
Full Name: Default state
--------------
1. Program Start sequence
1> MAIN.M procedure Entrance;
2>main function in Uiapplicationmain (), create an App object, and specify this app agent, detect the execution of the program, turn on the "event loop??" ; The event received by the handler;
3>uiapplicationdelegate method execution;
4> loading window;
5> specifying the root view Controller
(Root Viewcontroller)
2, UIApplication
In the iphone app, use an example of uiapplication (singleton, easy to use).
Main: Handling User events, window display, to the app application "designated agent"-to monitor the operation of the program.
3. main.m Main function
int main (int argc, char *argv[]) {
@autoreleasepool {
Return Uiapplicationmain (argc, argv, Nil, Nsstringfromclass ([Appdelegate class]));
}
}
Main does only three things:
Create Autoreleasepool auto-free pool
Call the Uiapplicationmain function
Using the auto-release pool
4, automatic release of the pool Autoreleasepool
A mechanism for "managing memory" that delays the release of objects created in a code block with certain functionality.
5, Uiapplicationmain
6, Uiapplicationdelegate
7, UIWindow
================================
Ps:
[one sentence per day]
"The whole world will make way for him if he knows where he's going,"--north face
[An English song every day]
"Nothing ' s Gonna change my love for You"--Westlife
================================
|--> Copyright (c) Bing Ma.
|--> GitHub RUL: https://github.com/SpongeBob-GitHub
iOS Program # startup process