游戏中心格式化时间

App*_*per 6 ios game-center gkscore

您为scoreReporter设置的值是什么,以便在游戏中心排行榜中显示为正确的时间.您需要什么来隐藏在排行榜中正确显示的秒数.任何帮助将不胜感激.

这是我的代码:

GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:@"BestTime"] autorelease];
scoreReporter.value = TotalSeconds * 10;
Run Code Online (Sandbox Code Playgroud)

Lui*_*uis 6

如果您已将排行榜评分格式类型定义为"经过时间 - 到第二个",则秒数就可以了.您只需要

scoreReporter.value = TotalSeconds
Run Code Online (Sandbox Code Playgroud)