异常' NSInvalidArgumentException',原因:' - [SIGameScene setDelegate:]:

时间:2014-10-23 08:44:05

标签: ios objective-c

请帮忙! 我有这个错误,应用程序在模拟器和设备上运行... 是什么原因 ?

SIgameScene.h代码:

@interface SIGameScene : SKScene {
    BOOL gameRunning;
    double gameStartedAt;
    NSTimer *timer;
    int lifes;
    int level;

}

@property (strong, nonatomic) SKSpriteNode *background;
@property (strong, nonatomic) SKSpriteNode *spaceship;
@property (strong, nonatomic) NSMutableArray *projectilesFriendly;
@property (strong, nonatomic) NSMutableArray *projectilesEnemy;
@property (strong, nonatomic) NSMutableArray *invaders;

@property (weak, nonatomic) id <SIGameSceneDelegate, SKSceneDelegate> delegate;

- (void)startGame;
- (void)pauseGame;
- (void)stopGame;
- (void)moveSpaceshipSidewaysByAngle:(double)angleInDegrees;

@end

0 个答案:

没有答案