Вопрос

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