1.刪除info.plist文件中 Main storyboard file base name項(xiàng)
該項(xiàng)用于引導(dǎo)程序打開Main的 storyboard 文件
2.在appdelegate中,
application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函數(shù)創(chuàng)建window,即
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
3.在appdelegate中,
application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函數(shù)?中,顯示window
[self.window makeKeyAndVisible]; //顯示窗口