I see.. I wouldn't mind that portrait display so long as my app doesn't get rejected on those grounds.. I'm sure a fix will come a long some time in the future.. time to upgrade!![]()












I see.. I wouldn't mind that portrait display so long as my app doesn't get rejected on those grounds.. I'm sure a fix will come a long some time in the future.. time to upgrade!![]()



Ok, so I have a brute force Xcode Hack... It's not perfect but it at least loads the achievement or high score board correctly. If someone flips the device 180 degrees, it will remain upside down or switch to portrait.
This fix is for displaying achievements with Game Center:
First search for GKAchievement in your xcode project and find this code (it should be in the CRunGameCenterAchievements.m file):
(void)displayDefault
{
if (gameCenter!=nil)
{
if (gameCenter->localPlayer!=nil)
{
if (gameCenter->localPlayer.isAuthenticated)
{
GKAchievementViewController* achievementController=[[GKAchievementViewController alloc] init];
if (achievementController!=nil)
{
[ho->hoAdRunHeader pause];
achievementController.achievementDelegate=self;
[ho->hoAdRunHeader->rhApp->mainViewController presentModalViewController:achievementController animated:YES];
}
[achievementController release];
}
}
}
}
INSERT THIS CODE BELOW the line:
[ho->hoAdRunHeader->rhApp->mainViewController presentModalViewController:achievementController animated:YES];
if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft))
{
CGAffineTransform transform = CGAffineTransformMakeRotation(3.14159/2);
achievementController.view.transform=transform;
} else
{
CGAffineTransform transform = CGAffineTransformMakeRotation(-3.14159/2);
achievementController.view.transform=transform;
}
That should do it. You can do the same hack on the GKLeaderboard View Controller.

Please note that this rotation 'fix' will work completely different on iPad and iPhone (from what I tested). There was no real way to fix it universally for both.
Apple is taking their time to respond on a question I sent them. When I get the answer I will shed some more light on it for you![]()
if you make two leaderboard/achievements objects ? one for iPhone and one for iPad ? until there is another possibility ? i can not release my game and only wait for the leaderboard/achievement fix.





Guys, I released a landscape app with a 'display default leaderboard' event in it when you click a button, but the leaderboard object shows a custom leaderboard until you press the button. After the update came out and I downloaded it from the store, the leaderboard displayed in the correct orientation, full screen....




Maybe I release my first app without GC, but it's quite stupid because I offer an in-app item which allows to score higher
In my case it's not a critical problem, because this title has no potential to be successful, I simply converted an old freeware game with the intention to try all these new things we have to learn. This should help prevent major mistakes for my first serious release.
But the orientation problem may be an issue for those who want to compete with all the shiny polished apps out there. It's not only about GC. In-App purchase is also affected by the faulty GC orientation, as I described here.