<!--
{
  "availability" : [
    "iOS: 6.0.0 - 26.0.0",
    "iPadOS: 6.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.9.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKGameCenterViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKGameCenterViewController"
  },
  "title" : "GKGameCenterViewController"
}
-->

# GKGameCenterViewController

The dashboard that allows players to access their Game Center data in your game.

```
class GKGameCenterViewController
```

## Overview

This view controller presents the dashboard from which players can browse and manage their Game Center data. You can present the dashboard in a specific state from which players can navigate to other areas, including their profile. Your game should pause other activities before presenting the dashboard.

To present the dashboard, initialize a new [`GKGameCenterViewController`](/documentation/GameKit/GKGameCenterViewController) object and set its delegate. Optionally, initialize a view controller in a specific state, to show a leaderboard with scores from a set of players or during a time period, or to show a specific achievement. Then present the view controller to the player, and GameKit calls your delegate when the player dismisses it.

For visionOS games, the dashboard appears anchored to the window, scene, or view relative to where you present the view controller. For immersive games, set the parent window to a separate window group than the immersive space window group. For the visionOS location of the dashboard when using the access point, see [Configure the access point on visionOS](/documentation/GameKit/adding-an-access-point-to-your-game#Configure-the-access-point-on-visionOS).

## Topics

### Configuring Game Center content

[`-  initWithState:`](/documentation/GameKit/GKGameCenterViewController/init(state:))

Creates a view controller that presents the specified Game Center content.

[`GKGameCenterViewControllerState`](/documentation/GameKit/GKGameCenterViewControllerState)

The type of content for the view controller to present.

[`-  initWithLeaderboard:playerScope:`](/documentation/GameKit/GKGameCenterViewController/init(leaderboard:playerScope:))

Creates a view controller that presents a leaderboard with data for the specified players.

[`-  initWithLeaderboardID:playerScope:timeScope:`](/documentation/GameKit/GKGameCenterViewController/init(leaderboardID:playerScope:timeScope:))

Creates a view controller that presents a leaderboard with data from the specified players and time period.

[`-  initWithLeaderboardSetID:`](/documentation/GameKit/GKGameCenterViewController/init(leaderboardSetID:))

Creates a view controller that presents a leaderboard set.

[`-  initWithAchievementID:`](/documentation/GameKit/GKGameCenterViewController/init(achievementID:))

Creates a view controller that presents an achievement.

[`-  initWithPlayer:`](/documentation/GameKit/GKGameCenterViewController/init(player:))

Creates a view controller that presents a player’s Game Center profile.

### Setting the view controller delegate

[`gameCenterDelegate`](/documentation/GameKit/GKGameCenterViewController/gameCenterDelegate)

The view controller’s delegate.

[`GKGameCenterControllerDelegate`](/documentation/GameKit/GKGameCenterControllerDelegate)

The delegate that GameKit calls when the player dismisses the dashboard.

### Deprecated

[Deprecated Symbols](/documentation/GameKit/gkgamecenterviewcontroller-deprecated-symbols)

Review unsupported symbols and their replacements.

## Relationships

### Inherits From

[`UINavigationController`](/documentation/UIKit/UINavigationController)

[`NSViewController`](/documentation/AppKit/NSViewController)

### Conforms To

[`GKViewController`](/documentation/GameKit/GKViewController)

[`UIUserActivityRestoring`](/documentation/UIKit/UIUserActivityRestoring)

[`NSExtensionRequestHandling`](/documentation/Foundation/NSExtensionRequestHandling)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`UIPasteConfigurationSupporting`](/documentation/UIKit/UIPasteConfigurationSupporting)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSSeguePerforming`](/documentation/AppKit/NSSeguePerforming)

[`UIAppearanceContainer`](/documentation/UIKit/UIAppearanceContainer)

[`UIFocusEnvironment`](/documentation/UIKit/UIFocusEnvironment)

[`UIResponderStandardEditActions`](/documentation/UIKit/UIResponderStandardEditActions)

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`UITraitChangeObservable-67e94`](/documentation/UIKit/UITraitChangeObservable-67e94)

[`UIActivityItemsConfigurationProviding`](/documentation/UIKit/UIActivityItemsConfigurationProviding)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`UIContentContainer`](/documentation/UIKit/UIContentContainer)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`UIStateRestoring`](/documentation/UIKit/UIStateRestoring)

[`NSEditor`](/documentation/AppKit/NSEditor)

[`UITraitEnvironment`](/documentation/UIKit/UITraitEnvironment)

### Inherited By

[`GKLeaderboardViewController`](/documentation/GameKit/GKLeaderboardViewController)

[`GKAchievementViewController`](/documentation/GameKit/GKAchievementViewController)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)