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:
Hi, the design pattern that works for me is to use a CCLayer as the controller and to simply load the UIWebView… regardless, you can directly affect the orientation of this or any UIVIew by applying a transform: