一 前言:
二: 操作步骤
第一步 去掉 main.storyboard 如下图所示
a第二步: 设置 window 的 根视图
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootVC = [[UIViewController alloc] init];
rootVC.view.backgroundColor = [UIColor blueColor];
self.window.rootViewController = rootVC;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
上述操作后就可以了 。