第一种解决方案:
When you declared your class, you probably forgot the superclass in the @interface
line. For example, you did
@interface MyClass
{
// ... ivars ...
}
// ... methods ...
@end
You want that first line to be:
@interface MyClass : NSObject
or whatever superclass you intended to use.或者就是继承的类没有include
第二种