Hello,
I've been converting my app to a universal app from iPad only. The App is landscape only
I have game center implemented and it is working fine on the iPad.
On my iPod touch (latest gen). Then I bring up a leader board it starts to pop up but in portrait. Only fills half the screen and is too wide. It is like it is sized to fit landscape but it coming up the wrong way.
I currently have:
GAME_AUTOROTATION set to kGameAutorotationUIViewController
I am using GameKitHelper the following to bring up the leaderboard:
-(void) showLeaderboard
{
if (isGameCenterAvailable == NO) return;
GKLeaderboardViewController* leaderboardVC = [[[GKLeaderboardViewController alloc] init] autorelease];
if (leaderboardVC != nil)
{
leaderboardVC.leaderboardDelegate = self;
leaderboardViewController = [[UIViewController alloc] init];
[[[CCDirector sharedDirector] openGLView] addSubview:leaderboardViewController.view];
[leaderboardViewController presentModalViewController:leaderboardVC animated:YES];
}
}
-(void) leaderboardViewControllerDidFinish:(GKLeaderboardViewController*)viewController
{
[leaderboardViewController dismissModalViewControllerAnimated:YES];
[leaderboardViewController release];
}
I've also noticed that what I click done to exit the leaderboard on the iPod the app does not appear to be receiving any touches but this is not happening on the iPad.
I have tried changing GAME_AUTOROTATION to kGameAutorotationCCDirector which will bring up the leaderboard with the correct orientation on the iPod but on the iPad, the orientation will start out correctly but if the iPad is rotated it flips to portrait and stays there.
Has anybody else encountered this and if so what was your solution?
Regards,