2011-03-20 78 views

回答

0

游戏中心得分提交实现你可以用它来处理错误或成功提交块回调。这是直接从开发者文档复制功能:

- (void) reportScore: (int64_t) score forCategory: (NSString*) category{ 
    GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:category] autorelease]; 
    scoreReporter.value = score; 

    [scoreReporter reportScoreWithCompletionHandler:^(NSError *error) { 
    if (error != nil){ 
     //There was an error submitting the score. 
    }else { 
     //The score was successfully submitted. 
    } 
    }]; 
} 

在用户界面方面,如滑动体“欢迎回来”的观点,你必须做出你自己的用户界面。 (我只是用UIAlertview,但是这完全取决于你。)