当我构建它时,我得到一个“预期说明符 - 限定符 - 列表'返回'之前的错误

时间:2010-08-02 04:57:11

标签: objective-c

#import <UIKit/UIKit.h>

@class game;
@class MainMenu;
@interface gameOver : UIViewController {

    IBOutlet UIButton *paButton;

    IBOutlet UILabel *fScore;
    game *playagain;
    back *MainMenu;
    IBOutlet int hs;

}
@property (nonatomic, retain) UIButton *paButton;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil highScore:(int)highScore;

-(IBAction) playAgain;
-(IBAction) goBack;

@end

1 个答案:

答案 0 :(得分:0)

您尚未在任何地方声明back。如果它也是Objective-C类,只需将以下内容添加到前向声明中:

@class back;