Question

I am wondering how to make sure that how lower the elapsed time is, how higher the score in Apple's game center is. When I have a time '12 secs' and a time '15 secs' later, the '15 secs' will be recognized as the highest score now. How can I solve this?

This is my code I use for submitting:

        self.gameCenterManager = [[GameCenterFiles alloc] init];
        [self.gameCenterManager setDelegate:self];
        int my_time = 12;
        NSLog(@"%i", my_time);

        [self.gameCenterManager reportScore:my_time forCategory: self.currentLeaderBoard];
Was it helpful?

Solution

This is a setting you make in iTunesConnect, not in your code, as that is where the characteristics of the leaderboard are configured.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top