第42月第25天 SceneDelegate:[AppDelegate setWindow:]: unrecognized selector sent to instance 0x60000002b440

1.

SceneDelegate
在Xcode11.0以后创建项目,运行项目出现bug时遇到的问题之一,我的解决方法。
报错:

-[AppDelegate setWindow:]: unrecognized selector sent to instance 0x60000002b440
1
修改方法:
在AppDelegate.h里加声明window

@property (nonatomic, strong) UIWindow * window;


https://blog.csdn.net/u010713935/article/details/104754971

猜你喜欢

转载自www.cnblogs.com/javastart/p/12566350.html