Mac Developer Library

Developer

GameKit Framework Reference GKLeaderboardViewControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

GKLeaderboardViewControllerDelegate

The GKLeaderboardViewControllerDelegate protocol is implemented by delegates of the GKLeaderboardViewController class. The delegate is called when the player dismisses the leaderboard.

  • Called when the leaderboard view is dismissed.

    Declaration

    Swift

    func leaderboardViewControllerDidFinish(_ viewController: GKLeaderboardViewController!)

    Objective-C

    - (void)leaderboardViewControllerDidFinish:(GKLeaderboardViewController *)viewController

    Parameters

    viewController

    The leaderboard view controller that was dismissed by the player.

    Discussion

    Your delegate should dismiss the view controller. If your game paused any gameplay or other activities, it can restart those services in this method.

    Availability

    Available in OS X v10.8 and later.

    Deprecated in OS X v10.10.