I recently upgraded xcode to 4.5 which installed iPad 6.0. Now when I run PhoneGap html5 app in it the page inside simulator is not rotating, it was working with earlier version of xcode. When I change simulator from portrait to landscape the html page of app remains in portrait, it does not rotate to landscape with simulator.
Share
This solution worked for me:
Edit AppDelegate.m:
Find:
[self.window addSubview:self.viewController.view];
replace with the following code:
self.window.rootViewController = self.viewController;
If you’re still displaying the statusbar then inside:
MainViewController.m:
After
[super viewDidLoad];
add
Might not be the best fix, but it worked for me!