启动时,我的iPhone上没有显示定时器代码

时间:2014-03-31 20:17:20

标签: objective-c xcode timer

以下是代码:

-(void)timerLabel{

timerLabel = [SKLabelNode labelNodeWithFontNamed:@"Arial"];
timerLabel.text = @"Time: 0";
timerLabel.fontColor = [UIColor whiteColor];
timerLabel.fontSize = 24.0f;
timerLabel.horizontalAlignmentMode = SKLabelHorizontalAlignmentModeRight;
timerLabel.position = CGPointMake(310, 10);
[self addChild:timerLabel];

}

0 个答案:

没有答案