我在老师的编码后面跟了2段 Xcode 7.2 版本
ViewController *vc = [[ViewController alloc]init];
_Window.rootViewController = vc ;
这段指定前面方法的指向(注意:ViewController.h 文件导包 )
ViewController *vc = [[ViewController alloc]init];
_Window.rootViewController = vc ;
这段指定前面方法的指向(注意:ViewController.h 文件导包 )
2016-04-28
Xcode7 貌似要指定viewController ,
_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
_window.backgroundColor = [UIColor blueColor];
_window.rootViewController = [[UIViewController alloc] init];
[_window makeKeyAndVisible];
_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
_window.backgroundColor = [UIColor blueColor];
_window.rootViewController = [[UIViewController alloc] init];
[_window makeKeyAndVisible];
2016-04-09