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