I am trying to use the button to pull up a single view Gamecenter leaderboard and cant really figure out how. I tried apples forums but didnt help so I came here. Help is appreciated

有帮助吗?

解决方案

The view controller that will present the GKGameCenterViewController must conform to the <GKGameCenterControllerDelegate> protocol.

To present the leaderboard:

GKGameCenterViewController *leaderboardController = [[GKGameCenterViewController alloc] init];
    if (leaderboardController != NULL) {
        leaderboardController.gameCenterDelegate = self;
        [self presentViewController:leaderboardController animated:YES completion:nil];
    }
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top