MonoTouch.GameKit.GKGameCenterViewController Class
Game Center user interface to present leaderboards and achievements.

See Also: GKGameCenterViewController Members

Syntax

[MonoTouch.Foundation.Register("GKGameCenterViewController", true)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.Mac_10_9)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_6_0)]
public class GKGameCenterViewController : MonoTouch.UIKit.UINavigationController

Remarks

Use this view controller to show leaderboards or achievements. To use it, create an instance of it, then configure the kind of information that you want to show by setting the GKGameCenterViewController.ViewState property and present the controller. the controller.

This method only works if the local player is authenticated. See the MonoTouch.GameKit.GKLocalPlayer class documentation for details on how to authenticate your user.

c# Example

var gameCenter = new GKGameCenterViewController ();
gameCenter.Finished += delegate(object sender, EventArgs e) {
	gameCenter.DismissViewController (true, delegate {});
};
gameCenter.ViewState = GKGameCenterViewControllerState.Default;
window.RootViewController.PresentViewController (gameCenter, true);

Related content

Requirements

Namespace: MonoTouch.GameKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0