iOS Developer Library

Developer

GameKit Framework Reference GKLeaderboardViewControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page

GKLeaderboardViewControllerDelegate

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

Inheritance


Not Applicable

Conforms To


Import Statement


Not Applicable

Objective-C

@import GameKit;

Availability


Available in iOS 4.1 and later.
Deprecated in iOS 7.0.
  • Called when the leaderboard view is dismissed. (required)

    Declaration

    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.

    Import Statement

    Objective-C

    @import GameKit;

    Availability

    Available in iOS 4.1 and later.

    Deprecated in iOS 7.0.