Unknown class main in Interface Builder file.

it2022-05-09  28

错误原因:这个错误的原因是项目中删掉了ViewController.h/m,采用了自定义的viweController, 而main.storyboard中有用到原来的ViewController.h/m,所以提示:Unknown class main in Interface Builder file.

解决方法有两种

方法一:重新设定指向的类。

方法二:先删掉main.storyboard, 然后在info.plist文件中删掉main storybiard file base name一项

以上的两种方法都能解决该问题

转载于:https://www.cnblogs.com/Yun-Longcom/p/9810995.html

相关资源:数据结构—成绩单生成器

最新回复(0)