I am developing the app which supporst landscape and portrait both modes ,my launch screen has landscape orientation before ios 9 it was ok but ios 9 launch screen is getting launched in portrait mode
5
votes
2 Answers
6
votes
i had same problem and i solved it finally.
First, remove the key "Supported interface orientations" from info.plist.
And then add key "Initial interface orientation" to info.plist. Set the key value as "Landscape (right home button)".
Finally, add to your appDelegate.mm.
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
return UIInterfaceOrientationMaskAll;
}
1
votes
I guess, that's because you haven't provided the appropriate launch image for landscape orientation. This might be helpful: https://stackoverflow.com/a/32642194/2799410