GKAchievementViewControllerDelegate Protocol Reference

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

Overview

An object implementing the GKAchievementViewControllerDelegate protocol is called when the user dismisses the achievements view controller. Typically, this protocol is implemented by the object in your game that originally displayed the achievements user interface.

Tasks

Responding to a Dismiss Action

Instance Methods

achievementViewControllerDidFinish:

Called when the user dismisses the achievements user interface. (required)

- (void)achievementViewControllerDidFinish:(GKAchievementViewController *)viewController
Parameters
viewController

The achievement view controller whose interface was dismissed by the player.

Discussion

Your delegate should dismiss the 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
GKAchievementViewController.h