문제

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];
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top