新版xcode新建项目 删除Scenedelegate

2020-05-19  本文已影响0人  小时光_8763

1: 到info.plist删除Application Scene Manifest选项;

2: 删掉Scenedelegate.h和Scenedelegate.m这两个文件;

3: AppDelegate里删掉

- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {}

- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {}

4: 在APPdelegate.h里面添加window属性

@property (strong, nonatomic) UIWindow * window;

运行

上一篇下一篇

猜你喜欢

热点阅读