0
我一直在摸索着这一段时间,现在我希望有一双额外的眼睛会帮助:我得到一个“无法找到接口声明。对于“AttackLayer” AbstractPickerView“,超麻烦的是我已经导入了所有必要的头文件,我能想到的唯一的事情就是多层次继承找不到'AbstractPickerView'的接口声明,'AttackLayer'的超类'
这里的接口:
@interface AttackLayer : AbstractPickerView <<< this is the one which gets the error
@interface AbstractPickerView: AbstractLayer <UIPickerViewDelegate>
@interface AbstractLayer : CCLayer
谁能看到这里有什么不对?
#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
请问您可以发布您的整个AttackLayer界面(AttackLayer.h) – doNotCheckMyBlog 2012-04-22 15:34:52
更新,请看看 – godzilla 2012-04-22 15:46:47
我猜这是一个循环包含。请发布“AbstractPickerView.h”。 – joerick 2012-04-22 22:40:41