1. Execute the main function first, and the Uiapplicationmain function will be called inside main
What does the 2.UIApplicationMain function do:
1> Creating UIApplication Objects
2> creating a Delegate object for uiapplication-----appdelegate
3> Opening a message loop
* The appdelegate will be notified when each monitor hears the corresponding system event.
4> Create a UIWindow object (inherited from UIView) for the application, set to the Appdelegate window property
5> load Info.plist file, read the name of the primary storyboard file
6> load the primary storyboard file, create a white arrow that refers to the Controller object
7> and set the 6th step to create the controller for the UIWindow Rootviewcontroller property (Root Controller)
8> show UIWindow, before the show will add Rootviewcontroller view to UIWindow above (in this step will create the controller's view)
[Window AddSubview:window.rootViewControler.view];
Full boot process for iOS programs (with storyboard)