Deprecated GKGameCenterViewController Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 7.0

leaderboardCategory

The named leaderboard that is displayed by the view controller. (Deprecated in iOS 7.0.)

@property(nonatomic, retain) NSString *leaderboardCategory
Discussion

The category property must either be nil or it must match a category identifier you defined when you created your leaderboards on iTunes Connect. If nil, the view displays scores for the aggregate leaderboard. Default is nil.

When the leaderboard is presented, the value of this property determines which leaderboard content is displayed to the player. As the player changes which leaderboard content they view, the leaderboardCategory property is automatically updated. For example, to preserve the player’s selections, you can read the leaderboardCategory property after the screen is dismissed, and set that value the next time you initialize the view controller.

Availability
  • Available in iOS 4.1 and later.
  • Deprecated in iOS 7.0.
Declared In
GKGameCenterViewController.h

leaderboardTimeScope

A time filter used to restrict which scores are displayed to the player. (Deprecated in iOS 7.0.)

@property(nonatomic, assign) GKLeaderboardTimeScope leaderboardTimeScope
Discussion

This property determines which tab view of the scores screen is displayed to the player. The default value is GKLeaderboardTimeScopeAllTime, which shows the best score each player has earned. For more information on time scopes, see GKLeaderboard Class Reference.

When the leaderboard is presented, the value of this property determines the initial tab that is displayed to the player. As the player changes which tab they view, the leaderboardTimeScope property is automatically updated. For example, to preserve the player’s selections, you can read the leaderboardTimeScope property after the screen is dismissed, and set that value the next time you initialize the view controller.

Availability
  • Available in iOS 4.1 and later.
  • Deprecated in iOS 7.0.
Declared In
GKGameCenterViewController.h