Hi
I am not sure if this is actually a Cocos2D issue, but I try anyway, maybe someone has an idea.
I have an app using Cocos2D and want to make the help pages with html. Therefor I made created a WebViewController that inherits from UIViewController. So far so good, but what ever I tried I am not able to get this thing into landscape mode. I can use the shouldAutorotateToInterfaceOrientationmethod to allow roration (which works) but the WebViewController always starts up in portrait mode.
I also added UIInterfaceOrientation to the Info.plist, but nothing seems to help. I already found some links to undocumented API calls (I know, not a good idea at all) but even those did not work ?!
Heres the code I use to show the WebViewController:
WebViewController *web = [[WebViewController alloc] init];
[self showUIViewController:webViewController];
[webViewController loadHelp];
[[Director sharedDirector] pause];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:[[Director sharedDirector] openGLView] cache:YES];
[[[Director sharedDirector] openGLView] addSubview:controller.view];
[UIView commitAnimations];
Does anyone has any idea how this work ?