Full boot process for iOS programs (with storyboard)

Source: Internet
Author: User

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)

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.