SKScene ゲームシーンでシーンを割り当てましたが、次のようなエラー メッセージが表示されます。No visible @interface with 'SKScene' declares the selector alloc.
これは、インターフェイスで宣言していないことを意味すると思いますか?? 訂正してください。
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInNode:self];
SKNode *node = [self nodeAtPoint:location];
// if play button touched, start transition to next scene
if ([node.name isEqualToString:@"play"]) {
NSLog(@"play pressed");
SKScene *GameScene = [[GameScene alloc] initWithSize:self.size];
SKTransition *flip = [SKTransition flipVerticalWithDuration:1.0];
[self.view presentScene:GameScene transition:flip];
}
}