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

一、刪掉工程中main.storyboard 後要刪除plist文件中對應的鍵值,不然會報以下錯誤: Could not find a storyboard named 'Main' in bundle NSBundlecode

二、刪除main.storyboard後,須要在AppDelegate.m中初始化一個window進行使用,不然應用程序沒有window可用。blog

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

 

相關文章
相關標籤/搜索