我显示了游戏中心排行榜,但是当我点击完成按钮时,排行榜关闭。但我无法点击屏幕上的任何按钮。
这是我的代码:
- (void)leaderboardViewControllerDidFinish:(GKLeaderboardViewController *)viewController
{
CCLOG(@"leaderboardViewControllerDidFinish %@", viewController);
[viewController dismissModalViewControllerAnimated:YES];
[viewController.view removeFromSuperview];
[viewController release];
[[CCDirector sharedDirector] resume];
}