我怎样才能抑制这种编译器警告同样的方法XX冲突: Meta method 'prefix' in category from '...soap+prefix.o' conflicts with same method from another category
? 这里是皂类+ Prefix.h:禁止警告:在类别元法XX与从另一个类别
@interface Soap (Prefix)
+(NSString*)prefix;
@end
和肥皂+ prefix.m:
#import "Soap.h"
#import "Soap+Prefix.h"
@implementation Soap (Prefix)
+(NSString*)prefix { return @"EInspector"; }
@end
和这两个文件的方式与SudZc
封装为Web服务自动生成的。
p.s.这个警告仅仅是在XCode中4.4
发出非常感谢你提前。
+ [肥皂前缀]在项目中的两个文件中声明,尽管我已经搜索过它但找不到多个文件,今天我找到了两个文件,非常感谢你的答案。你也可以投我的问题:) – JAHelia 2012-07-31 07:12:48