IOS App Launch process

Source: Internet
Author: User
<span id="Label3"><p></p><p>#import <UIKit/UIKit.h></p><p>#import "AppDelegate.h"</p><p>The main function is the program entry</p><p>int main (int argc, char * Argv[]) {</p><p>@autoreleasepool {</p><p></p><p>return uiapplicationmain (argc, argv, nil, nsstringfromclass ([appdelegate class]));</p><p>The third parameter is UIApplication</p><p>The fourth parameter is Appdelegate must comply with the Uiapplicationdelegate protocol</p><p>}</p><p>}</p><p>1. Provide class name according to <em class="parameter-name">Principalclassname</em> to participate in UIApplication object</p><p>2. Create the Uiapplicationdelegate object and become the UIApplication object agent, app.delegte=delegte, Listener State</p><p>3 Turn on a main thread loop to handle events to keep the program running</p><p>4. Load the Info.plist and judge there is a wood with the designation Main. storyboard, specifies that the load</p><p></p><p>IOS App Launch process</p></span>

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.