错误:Duplicate interface definition for class

mac2022-06-30  24

错误:

Duplicate interface definition for class  "类名称"

原因:在工程中有相同的文件或相同的 @interface 类名称

解决办法:

  可以把其中一个 @interface 类名称   标记为分类

   @interface MX (分类名称)     //分类名称可省去,但  ()  不能省去

   @end

转载于:https://www.cnblogs.com/LeeYZ/p/3964149.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)