No known class method for selector 'setImage:andName:'错误分析.//删除.h与.m文件时的注意事项

No known class method for selector 'setImage:andName:'错误分析.//删除.h与.m文件时的注意事项


 
 
 
 
 
 
 
 
 
 
 
 
 
错误原因:创建类时,发现父类写错后删除,但并没有在硬盘上删除,导致重新创建同名类时,Xcode将文件放在根目录上.编译时编译之前的类.
错误现象分析:⓵⓶⓷⓸⓹⓺
总结:类创建错误,删除类并新建同名类时,delete时请注意选择Move to Trash或重新命名类名;否则新建的类将因为路径错误而无法参与编译.
No known class method for selector 'setImage:andName:'错误分析.//删除.h与.m文件时的注意事项
No known class method for selector 'setImage:andName:'错误分析.//删除.h与.m文件时的注意事项
No known class method for selector 'setImage:andName:'错误分析.//删除.h与.m文件时的注意事项
No known class method for selector 'setImage:andName:'错误分析.//删除.h与.m文件时的注意事项
No known class method for selector 'setImage:andName:'错误分析.//删除.h与.m文件时的注意事项
©  chenyilong. Powered by  Postach.io

你可能感兴趣的:(selector)