Swift开发: 常见问题汇总
2017-07-12 本文已影响65人
梧雨北辰
1、Unknown class xxClass in Interface Builder file.
这个问题出现在使用Xib时设置自定义类名的时候。在参考OC的写法创建了自定义的类,而且也在xib中使用时设置了控件的class为自定义的类名之后,运行Xcode会在控制台提示错误是Unknown class xxClass in Interface Builder file.
解决:在使用的xib文件的控制面板位置,在设置自定义类的类名的时候,将Module修改为当前工程的Module,如图:
