GKGameCenterControllerDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/GameKit.framework
Availability
Available in OS X v10.8 and later.
Companion guide
Declared in
GKGameCenterViewController.h

Overview

The GKGameCenterControllerDelegate protocol is implemented by delegates of the GKGameCenterViewController class. The delegate is called when the player dismisses the Game Center user interface.

Tasks

Handling User Actions

Instance Methods

gameCenterViewControllerDidFinish:

Called when the player is done interacting with the view controller’s content. (required)

- (void)gameCenterViewControllerDidFinish:(GKGameCenterViewController *)gameCenterViewController
Parameters
gameCenterViewController

The view controller the player finished interacting with.

Discussion

Your delegate should dismiss the Game Center view controller. If your game paused any gameplay or other activities, it can restart those services in this method.

Availability
  • Available in OS X v10.8 and later.
Declared In
GKGameCenterViewController.h