iOS Developer Library

Developer

GameKit Framework Reference GKAchievementViewControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page

GKAchievementViewControllerDelegate

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.

  • Called when the user dismisses the achievements user interface.

    Declaration

    - (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 iOS 4.1 and later.

    Deprecated in iOS 7.0.