0
我正在創建一個iphone應用程序,出於某種原因,當我運行代碼時,指令不會出現。這是我的指導課。當我運行程序時,什麼也沒有顯示出來。Instructions.m(遊戲說明)未打印出說明?
不應該「該遊戲的對象是」顯示在屏幕上?
謝謝你力所能及的幫助/知識,你可以提供給我:)
#import "Instructions.h"
#import "MainMenu.h"
@implementation Instructions
+ (CCScene *) scene
{
CCScene * scene = [CCScene node]; // scene is an autorelease object
Instructions * layer = [Instructions node]; // later is an autorelease object
[scene addChild: layer]; // add layer as a child to scene
return scene; // return the scene
}
- (id) init
{
if ((self = [super init]))
{
[ self how ];
}
return self;
}
- (void) how
{
NSLog(@"The object of this game is ");
}
@end