ゲームにカウントダウンタイマーがあり、テーブルに小数点以下2桁と、小数点以下2桁のレコードが表示されるようにする方法を見つけようとしています。現在、整数としてカウントダウンし、整数として記録します。何か案は?
-(void)updateTimerLabel{
if(appDelegate.gameStateRunning == YES){
if(gameVarLevel==1){
timeSeconds = 100;
AllowResetTimer = NO;
}
timeSeconds--;
timerLabel.text=[NSString stringWithFormat:@"Time: %d", timeSeconds];
}
countdownTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(updateTimerLabel) userInfo:nil repeats:YES];