1.main函數(shù)。
2.UIApplicationMain
· 創(chuàng)建UIApplication對象
·創(chuàng)建UIApplication的delegate對象
3.delegate對象開始監(jiān)聽處理系統(tǒng)事件(無storyboard的情況)
·程序啟動(dòng)完畢的時(shí)候,就會(huì)調(diào)用代理的- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions方法
·在- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions中創(chuàng)建UIWindow
·創(chuàng)建和設(shè)置UIWindow的?rootViewController
·顯示窗口
{
3.根據(jù)info.plist獲得主要storyboard的文件名,加載最主要的storyboard(有storyboard的情況)
·創(chuàng)建UIWindow
·創(chuàng)建和設(shè)置UIWindow的rootViewController
·顯示窗口
}