1. 程式人生 > >刪除掉工程裡的main.stroryboard之後需要的設定

刪除掉工程裡的main.stroryboard之後需要的設定

1.刪除info.plist檔案中 Main storyboard file base name項
該項用於載入程式開啟Main的 storyboard 檔案

2.在appdelegate中,
application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函式建立window,即
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

3.在appdelegate中,
application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函式�中,顯示window
[self.window makeKeyAndVisible]; //顯示視窗