錯題集---Could not find a storyboard named 'main' in bundle NSBundle

 

錯題集---Could not find a storyboard named 'main' in bundle NSBundle 


step1:選中項目名後在TARGET中找到 info 而後修改 Main storyboard file base name的值爲咱們項目中storyboard得名稱。ui


step2:點擊Build Phases 後在Copy Bundle Resource下把咱們項目的storyboard加進去,沒有Copy Bundle Resource這一項的話能夠在位置1處點擊添加。spa


經過以上兩步就能夠肯定咱們的storyboard加入到項目中,而且被正確引用。orm




相關文章
相關標籤/搜索