开发者

Game Center Formatting Time

开发者 https://www.devze.com 2023-03-19 11:47 出处:网络
What do you set the value to be for the scoreReporter to show up as a correct time in game center leader-board.What do you need to covert the seconds to show up properly in the leader-board.Any help w

What do you set the value to be for the scoreReporter to show up as a correct time in game center leader-board. What do you need to covert the seconds to show up properly in the leader-board. Any help would be greatly appreciated.

Here is the code I have:

GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:@"BestTime"] autorele开发者_Python百科ase];
scoreReporter.value = TotalSeconds * 10;


Seconds are fine if you have defined your leaderboard score format type to "Elapsed time - To the second". You just need

scoreReporter.value = TotalSeconds
0

精彩评论

暂无评论...
验证码 换一张
取 消