GKLeaderboardViewControllerDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/GameKit.framework
Availability
Available in iOS 4.1 and later.
Deprecated in iOS 7.0.
Companion guide
Declared in
GKLeaderboardViewController.h
Related sample code

Overview

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

Tasks

Handling User Actions

Instance Methods

leaderboardViewControllerDidFinish:

Called when the leaderboard view is dismissed. (required)

- (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 iOS 4.1 and later.
Declared In
GKLeaderboardViewController.h