I implemented Game Center into an iOS app.
When the game center leader board view is opened from within the app and I press the 'Done' button, the view doesn't disappear.
Below the code to open the Game Center view:
GKGameCenterViewController gameCenter = new GKGameCenterViewController ();
gameCenter.ViewState = GKGameCenterViewControllerState.Leaderboards;
gameCenter.LeaderboardCategory = "myleaderboardddd";
gameCenter.LeaderboardTimeScope = GKLeaderboardTimeScope.AllTime;
gameCenter.Finished += delegate(object sender, EventArgs e) {
Console.WriteLine ("CLOSE THIS VIEW!"); // <-- THIS IS NEVER REACHED
this.DismissViewController(true, null);
};
this.PresentViewController (gameCenter, true, null);
Note that the Console.WriteLine is never reached when pressing the done button.
What do I do wrong?