leaderboardController.category = @"FruitScore";
leaderboardController.timeScope = GKLeaderboardTimeScopeAllTime;
leaderboardController.leaderboardDelegate = self;
[self presentModalViewController: leaderboardController animated: YES];
int iOrientation = agk::GetOrientation();
if (iOrientation==3) {
leaderboardController.view.transform = CGAffineTransformMakeRotation(1.570796327f);
} else {
leaderboardController.view.transform = CGAffineTransformMakeRotation(-1.570796327f);
}
[leaderboardController.view setCenter:CGPointMake([[UIScreen mainScreen] bounds].size.width/2,
[[UIScreen mainScreen] bounds].size.height/2)];
Sometimes Game Center is up down side in my game. Later I found this way, share it with you.
The Miracrea Games