Instance Property

gameCenterDelegate

The view controller’s delegate.

Declaration

iOS, Mac Catalyst, tvOS
@property(weak, nonatomic) id<GKGameCenterControllerDelegate> gameCenterDelegate;
macOS
@property(weak, atomic) id<GKGameCenterControllerDelegate> gameCenterDelegate;

Discussion

Before displaying the view controller, your game must set a delegate.

See Also

Configuring the Game Center View Controller’s Delegate

GKGameCenterControllerDelegate

The delegate is called when the player dismisses the Game Center user interface.