开发者

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

开发者 https://www.devze.com 2023-01-10 00:28 出处:网络
#import <UIKit/UIKit.h> @class game; @class MainMenu; @interface gameOver : UIViewController { IBOutlet UIButton *paButton;
#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

精彩评论

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

关注公众号