无法找到'AbstractPickerView'的接口声明,'AttackLayer'的超类 [英] cannot find interface declaration for 'AbstractPickerView',superclass of 'AttackLayer'
问题描述
我已经在这个问题上抓了一段时间了,并希望额外的一双眼睛会有所帮助:我得到一个无法找到'AbstractPickerView'的接口声明,'AttackLayer'的超类。麻烦就是我导入了所有必要的头文件,我唯一能想到的是多级继承
I have been scratching my head on this one for some time now and was hoping an extra pair of eyes would help: I am getting a "Cannot find interface declaration for 'AbstractPickerView', superclass of 'AttackLayer'. Trouble is i have imported all the necessary header files and the only thing i can think of is the multiple level inheritance
这里是接口:
@interface AttackLayer : AbstractPickerView <<< this is the one which gets the error
@interface AbstractPickerView: AbstractLayer <UIPickerViewDelegate>
@interface AbstractLayer : CCLayer
有人能看到这里有什么问题吗?
can anyone see what is wrong over here?
#import <Foundation/Foundation.h>
#import "AbstractPickerView.h"
@interface AttackLayer : AbstractPickerView
{
CCMenu *buyPowerButton;
CCMenu *finishBuyPower;
id playerUI;
}
-(id) init:(PlayerController *)playerControl withObject:(id)object;
-(void)spendAttack:(id)sender;
-(void)spendResist:(id)sender;
-(void)transferPower:(id)sender;
-(void)timeOut;
-(void)commenceAttack:(id)sender;
-(void)appear;
-(void)buyPower:(id)sender;
-(void)reloadButtons;
-(void)buyPowerButtons;
-(void)cleanUpPicker:(id)sender;
@property(nonatomic,retain)id playerUI;
@property(nonatomic,retain) CCMenu *button2;
@property(nonatomic,retain) CCMenu *button3;
@property(nonatomic,retain) CCMenu *buyPowerButton;
@property(nonatomic,retain) CCMenu *finishBuyPower;
@property(nonatomic,retain)CCMenu *starMenu;
@end
推荐答案
解决了这个问题,我无法相信我思考了这么多个小时,我用@ class替换了接口中的头部导入,移动了AbstractPickerView.m中的导入并修复了问题
solved the problem, i can't believe i pondered over it for so many hours, i replaced the header imports in the interface with @class,moved the imports in the AbstractPickerView.m and that fixed the problem
这篇关于无法找到'AbstractPickerView'的接口声明,'AttackLayer'的超类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!