Could not find a storyboard named 'Main' in bundle NSBundle


1、刪掉工程中main.storyboard 后要刪除plist文件中對應的鍵值,否則會報如下錯誤: Could not find a storyboard named 'Main' in bundle NSBundle

2、刪除main.storyboard后,需要在AppDelegate.m中初始化一個window進行使用,否則應用程序沒有window可用。

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

 


免責聲明!

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



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