I am using Cocos2d-x 3.2 and I have problems activating the landscape mode on iPad retina. I always get “surface size: 1536x2048” (instead of 2048x1536). This happens only on device, on iOS simulator it works correctly.
I already did the following:
-
set General->deployment info to landscape
-
in RootViewController.mm:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationIsLandscape( interfaceOrientation );
}
// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
-
(NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
return UIInterfaceOrientationMaskLandscape;
#endif
} -
(BOOL) shouldAutorotate {
return YES;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
-
Added an asset catalog with all required launch images in the correct resolutions.
Is there something I missed?