Something went wrong. The content for this page did not load correctly. Reload the page to try again. A long time ago, I made a game center account to which I attached my CoC village. This account hasn't been used anymore, and I have forgotten the ID and the password. Now I want to transfer that game to my new phone which has a new game center ID, but need a transfer code from the old account to do so. Game center free download - FIFA 17, Game Center, Fix it Center, and many more programs.
A single user interface used to display achievements and leaderboards supported by Game Center.
SDKs
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
Declaration
Overview
Important
Your application must authenticate a local player before you can use any Game Center classes. If there is no authenticated player, your application receives a GKError.Code.notAuthenticated
error. For more information on authentication, see Game Center Programming Guide.
To display the Game Center screen, initialize a new GKGameCenterViewController
object and set its delegate. Optionally, you can choose to configure the view controller further to specify which content is initially displayed. Then present the view controller. Your delegate is called when the user dismisses the screen. Listing 1 shows how to present a new GKGameCenterViewController
and display the scores for a specific leaderboard.
Your game should pause other activities before presenting the Game Center user interface.
Topics
Configuring the Game Center View Controller’s Delegate
var gameCenterDelegate: GKGameCenterControllerDelegate?
protocol GKGameCenterControllerDelegate
The delegate is called when the player dismisses the Game Center user interface.
var viewState: GKGameCenterViewControllerState
The content displayed by the Game Center controller.
enum GKGameCenterViewControllerState
var leaderboardIdentifier: String?
The named leaderboard that is displayed by the view controller.
var leaderboardCategory: String?
Game Center On Macbook
The named leaderboard that is displayed by the view controller.
Deprecatedvar leaderboardTimeScope: GKLeaderboard.TimeScope
A time filter used to restrict which scores are displayed to the player.
Relationships
- ,
See Also
class GKDialogController
An object that provides the ability to present Game Center view controller classes in macOS.
Game Center Username On Mac Computer
protocol GKViewController
Mac Username And Password
The abstract base protocol adopted by Game Center view controller classes.