IOS SWIFT START Process Learning

Source: Internet
Author: User

In fact, like we Java, C through a main function as a portal.

Main is encapsulated inside the uiapplicationmain. So the latter becomes the starting entrance.

He scans the Info.plist and finds the portal storyboard that needs to be loaded, such as Main.storyboard, to read the Uiviewcontroller inside. And then it started up.

But the code looks only:

@UIApplicationMain

Class Appdelegate: uiresponder, uiapplicationdelegate {

Hidden very deep.

Resources:

http://course.gdou.com/blog/Blog.pzs/archive/2012/2/5/10929.html

How to instantiate this controller

because main.storyboard defines the

and info.plist defines the entrance storyboard

Uiapplicationmain will scan the info.plist

http://www.makaidong.com/%E5%8D%9A%E5%AE%A2%E5%9B%AD%E6%9C%89/27693.shtml

how to find info.plist

In a nutshell, the convention is written dead.

IOS SWIFT START Process Learning

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.