第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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM