// self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
ViewController *vc = [[ViewController alloc] init];
self.window.rootViewController = vc;
// [self.window makeKeyAndVisible];//注销的两句就是把window替换了一下,不要也可以。因为Main.storyboard没有删掉,它会默认的创建window,如果Main.storyboard删了,就不会默认创建window,就不能注销。