去除Xcode6创建工程时自带的storyboard

时间:2023-12-31 17:42:09

去除Xcode6创建工程时自带的storyboard

去除Xcode6创建工程时自带的storyboard

1. 删除storyboard文件,并在setting里面清空加载storyboard:

去除Xcode6创建工程时自带的storyboard

2. 导入ViewController到appDelegate文件中

此处复制粘贴的代码如下:

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

// Override point for customization after application launch.

self.window.backgroundColor = [UIColor whiteColor];

[self.window makeKeyAndVisible];

return YES;

去除Xcode6创建工程时自带的storyboard

3. 验证一下效果(电脑有点慢额):

去除Xcode6创建工程时自带的storyboard

就是这么简单哦:)