Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios 9 launch screen is getting launched in portrait mode

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

like image 489
Jitendra Patil Avatar asked Oct 07 '15 11:10

Jitendra Patil


2 Answers

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;
            }
like image 104
Matthew.Jun Avatar answered Nov 16 '22 04:11

Matthew.Jun


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

like image 30
Arthur Gevorkyan Avatar answered Nov 16 '22 04:11

Arthur Gevorkyan