1. 删除storyboard文件,并在setting里面清空加载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;
3. 验证一下效果(电脑有点慢额):
就是这么简单哦:)
时间: 2024-10-13 12:42:47