开发者

When I build it I get an "expected specifier-qualifier-list before 'back' error

#import <UIKit/UIKit.h>

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

    IBOutlet UIButton *paButton;

    IBOutlet UILabel *fScore;
    game *playagain;
    back *MainMenu;
    IBOutl开发者_如何学JAVAet int hs;

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

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

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

@end


You have not declared back anywhere. If it is an Objective-C class too, just add the following to the forward declarations:

@class back;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜