我正在做一个基于数学的ios应用程序..我已经完成了将高分上传到游戏中心的代码..但这不起作用..它总是显示0作为高分..这是我的代码...
[[GKLocalPlayer localPlayer]authenticateWithCompletionHandler:^(NSError *error)
      {
            if (error ==nil) 
            {
                 CCLOG(@"Success");
            } else 
            {
                 CCLOG(@"Fail");
            }
       }];
.
.
.
.
.
-(void)showLeaderboard
{   
    if( ! gameCenterViewController_ )
        gameCenterViewController_ = [[GameCenterViewController alloc] init];
    [gameCenterViewController_ showLeaderboard];
}
-(void)submitMyScore1:(int)score1
{
    CCLOG(@"submitMyScore1--%d",score1);
    //This is the same category id you set in your itunes connect GameCenter LeaderBoard
    GKScore *myScoreValue = [[[GKScore alloc] initWithCategory:@"bigwizlist"] autorelease]; 
    myScoreValue.value = score1;
    [myScoreValue reportScoreWithCompletionHandler:^(NSError *error){
        if(error != nil)
        {
            CCLOG(@"Score Submission Failed");
        } else
        {
            CCLOG(@"Score Submitted");
        }
    }];
}