I have an application in which there are 5 different game modes, 3 of which have an integer point, and 2 of them have an estimate of the time (how quickly they complete the game).
How to set up my reportScore: method reportScore: so that my leaderboard is set up in iTunes Connect (which displays high scores in the lowest and highest format up to a hundredth of a second), will receive my user account in time format?
I would like to send it as NSTimeInterval .
The method that Apple Docs points to accepts only an integer as an estimate:
- (void) reportScore: (int64_t) score forCategory: (NSString*) category { GKScore *scoreReporter = [[GKScore alloc] initWithCategory:category]; scoreReporter.value = score; [scoreReporter reportScoreWithCompletionHandler:^(NSError *error) { if (error != nil) {
UPDATE
I did some research on this, and I know that you can only send ratings to Game Center game centers as int64_t . So, how do I format this integer so that my leaderboard formats it as time up to a hundredth of a second?
Thank you for your help!
David source share