Game Center Formatting Time

What do you set for the scoreReporter value for the correct time in the leading board of the game center. What do you need to hide seconds in order to correctly display on the leading board. Any help would be greatly appreciated.

Here is the code I have:

GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:@"BestTime"] autorelease]; scoreReporter.value = TotalSeconds * 10; 
+6
source share
1 answer

Seconds are great if you determine the type of leaderboard format in Elapsed Time - Second. You just need

 scoreReporter.value = TotalSeconds 
+6
source

Source: https://habr.com/ru/post/892455/


All Articles