删除SceneDelegate
- 删除SceneDelegate文件
直接删除即可。
- Info.plist
Info.plist -> Open As -> Source Code
删除对应的键值对:
搜索key --> UIApplicationSceneManfest
图片来源上述文章
- Applegate
首先,删除 #pragma mark - UISceneSession lifecycle 下的协议方法。
然后,再 didFinishLaunchingWithOptions: 中添加:
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
self.window.rootViewController = [[ViewController alloc] init];;
[self.window makeKeyAndVisible];
并在,AppDelegate.h 中加入:
@property (strong, nonatomic) UIWindow *window;
完成之后运行即可。
取消Safe area
参考文章
分别选择 Main.storyboard 和 LaunchScreen.storyboard ,修改成如下图即可:
=================================================================
个人博客
Github
个人公众号:Flutter小同学
个人网站