Reputation: 1648
I've got the code for an old PhoneGap 1.3.0 app running on iPad, but the screen rotation is off. The app plist is set to support landscape only (which the app starts in), but then the content gets rotated 90 degrees counter-clockwise once the splash screen has been displayed.
The status bar appears at the top of the screen, so it's the actual web view content that is rotated, not the view controller.
Does any body have any ideas where to start looking for a possible fix?
Upvotes: 1
Views: 169
Reputation: 1648
Further Googling returns this:
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/KJmvRIajsm8
The following line in PhoneGapDelegate.m
[self.window addSubview:self.viewController.view];
should be changed to
[self.window setRootViewController:self.viewController];
Alternatively, I could have used a newer version of PhoneGap, but I really didn't have time to mess about updating the project.
Upvotes: 1