iOS Developer Library

Developer

GameKit Framework Reference GKAchievementViewController Class Reference

Options
Deployment Target:

On This Page
Language:

GKAchievementViewController

An GKAchievementViewController object provides a standard user interface to display achievement progress for the local player. If the GKGameCenterViewController class is available, you should use it instead. More...

Import Statement


import GameKit @import GameKit;

Availability


Available in iOS 4.1 and later.
Deprecated in iOS 7.0.
  • The achievement view controller’s delegate.

    Declaration

    Swift

    unowned(unsafe) var achievementDelegate: GKAchievementViewControllerDelegate!

    Objective-C

    @property(assign, nonatomic) id< GKAchievementViewControllerDelegate > achievementDelegate

    Discussion

    Your game must set the delegate before presenting the view controller.

    Import Statement

    import GameKit

    Availability

    Available in iOS 4.1 and later.