錯誤緣由:這個錯誤的緣由是項目中刪掉了ViewController.h/m,採用了自定義的viweController, 而main.storyboard中有用到原來的ViewController.h/m,因此提示:Unknown class main in Interface Builder file.ui
解決方法有兩種blog
方法一:從新設定指向的類。class
方法二:先刪掉main.storyboard, 而後在info.plist文件中刪掉main storybiard file base name一項file
以上的兩種方法都能解決該問題方法