GPGAchievementController Class Reference

GPGAchievementController Class Reference

Overview

A view controller that displays the state of the local player's achievements.

This controller must be displayed modally from another view controller. Once displayed, this controller will show a table view that contains all of the application's achievements with states reflecting the accomplishments of the local player.

The user may dismiss the controller by tapping a "Done" button. When this occurs the achievementViewControllerDidFinish: method will be called on the achievementDelegate. Within this method you should dismiss the modal view controller.

Example presentation of a GPGAchievementController:

GPGAchievementController* ac = [[[GPGAchievementController alloc] init] autorelease];
ac.achievementDelegate = self;
[self.rootController presentModalViewController:ac animated:YES];

Example implementation of GPGAchievementControllerDelegate:

- (void)achievementViewControllerDidFinish:(GPGAchievementController *)viewController {
  [self.rootController dismissModalViewControllerAnimated:YES];
}

Public Member Functions

Initialization
(id) - init
 Initializes a newly allocated achievement controller.

Properties

Properties
id
< GPGAchievementControllerDelegate
achievementDelegate
 The delegate through which the user will dismiss the controller.

Member Function Documentation

- (id) init

Initializes a newly allocated achievement controller.

This is the designated initializer. Designated initializer.


Property Documentation

The delegate through which the user will dismiss the controller.

Оставить отзыв о...

Текущей странице
Play Games Services for iOS
Play Games Services for iOS