Launching into portrait-orientation from an iPhone 6 Plus home screen in landscape orientation results in wrong orientation

Launching into portrait-orientation from an iPhone 6 Plus home screen in landscape orientation results in wrong orientation

how to rotate screen on iphone 8
how to rotate screen on iphone 7
how to rotate screen on iphone xr
how to rotate screen on ipad
how to rotate screen on iphone 10
how to rotate screen on iphone 6
screen rotation iphone 5
how to rotate screen on iphone 8 plus

The actual title for this question is longer than I can possibly fit:

Launching an app whose root view controller only supports portrait-orientation but which otherwise supports landscape orientations on an iPhone 6 Plus while the home screen is in a landscape orientation results in a limbo state where the app's window is in a landscape orientation but the device is in a portrait orientation.

In short, it looks like this:

When it is supposed to look like this:

Steps to Reproduce:

  1. iPhone 6 Plus running iOS 8.0.

  2. An app whose plist supports all-but-portrait-upside-down orientations.

  3. The root view controller of the app is a UITabBarController.

  4. Everything, the tab bar controller and all its descendent child view controllers return UIInterfaceOrientationMaskPortrait from supportedInterfaceOrientations.

  5. Start at iOS home screen.

  6. Rotate to landscape orientation (requires iPhone 6 Plus).

  7. Cold-launch the app.

  8. Result: broken interface orientations.

I can't think of any other way to enforce a portrait orientation except to disable landscape altogether, which I can't do: our web browser modal view controllers need landscape.

I even tried subclassing UITabBarController and overriding supportedInterfaceOrientations to return the portrait-only mask, but this (even with all the other steps above) did not fix the issue.


Here's a link to a sample project showing the bug.



I had the same issue when launching our app in landscape on an iPhone 6 Plus.

Our fix was to remove landscape supported interface orientations from the plist via project settings:

and implement application:supportedInterfaceOrientationsForWindow: in the app delegate:

- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    return UIInterfaceOrientationMaskAllButUpsideDown;
}

Apparently the information in your plist is to specify what orientations your app is allowed to launch to.

ios, Result: broken interface orientations. I had the same issue when launching our app in landscape on an iPhone 6 Plus. 1) to force the app orientation to be in portrait in the AppDelegate: Firstly it didn't work but after some dig I have to do it on initial controller after splash screen. Wrong Orientation with iPhone 6+. I have a problem with ip6/6s plus about launch screen. Description: I've set portrait for Launch Screen.xib. When I rotate device iphone 5,6, the screens are running well. However, I'm running on


Setting the statusBarOrientation of the UIApplication seems to work for me. I placed it in the application:didFinishLaunchingWithOptions: method in the app delegate.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    application.statusBarOrientation = UIInterfaceOrientationPortrait;

    // the rest of the method
}

Apple iPhone 6s Plus Screen Rotation Problems: screen stuck on , stuck on portrait mode, stuck on landscape mode, screen orientation By default, the Apple iPhone 6s Plus Home screen orientation is set to portrait mode that something is wrong with the screen orientation and that needs to be fixed can result to the same problem on the iPhone's screen orientation. To make confirm iPhone screen orientation check iPhone status bar icon or bottom steps. Step 1. Launch Control Center by swipe up from the bottom iPhone screen. Step 2. Now see in below-given pictures. Step 3. If your iPhone Portrait Orientation Lock is ON then it is a barrier for landscape mode. So turn off it and check again. That’s it.


This appears to be a bug in iOS 8 when using a UITabBarController as a root view controller. A workaround is to use a mostly vanilla UIViewController as the root view controller. This vanilla view controller will serve as the parent view controller of your tab bar controller:

///------------------------
/// Portrait-Only Container
///------------------------

@interface PortraitOnlyContainerViewController : UIViewController

@end

@implementation PortraitOnlyContainerViewController

- (NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskPortrait;
}

@end

// Elsewhere, in app did finish launching ...

PortraitOnlyContainerViewController *container = nil;

container = [[PortraitOnlyContainerViewController alloc] 
              initWithNibName:nil 
              bundle:nil];

[container addChildViewController:self.tabBarController];
self.tabBarController.view.frame = container.view.bounds;
[container.view addSubview:self.tabBarController.view];
[self.tabBarController didMoveToParentViewController:container];

[self.window setRootViewController:container];

Rotate the screen on your iPhone or iPod touch, The screen on your iPhone and iPod touch can rotate so that you can see apps — like Safari and Messages — in portrait or landscape mode. Learn how to Rotate the screen on an iPhone without a Home button. Swipe down Tap the Portrait Orientation Lock button to make sure that it's off. Turn your  Launching an app whose root view controller only supports portrait-orientation but which otherwise supports landscape orientations on an iPhone 6 Plus while the home screen is in a landscape orientation results in a limbo state where the app's window is in a landscape orientation but the device is in a portrait orientation.


I had a very similar problem. I wanted to force portrait mode everywhere except for playing back videos.

What I did was:

1) to force the app orientation to be in portrait in the AppDelegate:

-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
    if ([window.rootViewController.presentedViewController isKindOfClass:[MPMoviePlayerViewController class]])
    {
        return UIInterfaceOrientationMaskAll;
    }
    return UIInterfaceOrientationMaskPortrait;
}

2) launching an empty modal view controller fixed the problem in my case. I launch it in the viewDidLoad of the first view controller that is on the root of my NavigationViewController (the first view controller visible after the application launches):

- (void)showAndHideNamelessViewControllerToFixOrientation {
    UIViewController* viewController = [[UIViewController alloc] init];
    [self presentViewController:viewController animated:NO completion:nil];
    [viewController dismissViewControllerAnimated:NO completion:nil];
}

iPhone Plus Home Screen Not Rotating? It's Your Display Settings , Basically, you have to enable home screen rotation on iPhone Plus including iPhone 7 Plus and iPhone 6 Plus by not using the Zoomed view: and rotate the device sideways into landscape mode to rotate the Home Screen but the charger is designed to hold the phone in landscape better than portrait. Screen Portrait Orientation mode displays content in landscape (horizontal) or portrait (vertical) and isn't available for all apps. Simply turn the device to change the view. The steps below apply to the following models: iPhone X / XS / XS Max / XR. iPhone 8 / 8 Plus.


Please try the following code. Probably this problem caused by size of keywindow on landscape launch.

// in application:didFinishLaunchingWithOptions: ...

self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
[self.window setFrame:[[UIScreen mainScreen] bounds]]; //<- ADD!!

Apple iPhone 6s Screen Rotation Problems: Screen Won't Rotate , Smartphones are designed to switch between vertical and horizontal on portrait or landscape view, then it denotes that something is wrong and needs to be rectified. Read on to find out what causes the iPhone 6s screen orientation to apps will result to the iPhone display being stuck on portrait mode. Swipe up from the bottom edge of your screen to open Contol Center. Tap the Portrait Orientation Lock button to make sure that it's off. Turn your iPhone or iPod touch sideways. If the screen still won't rotate, try another app — like Safari or Messages — which are known to work in landscape mode.


Apple iPhone SE Screen Rotation Problem: Won't rotate or switch , This means that the Home screen stays in a single display mode — Portrait View. For those who are not yet aware of it, there is no need to  Launching an app whose root view controller only supports portrait-orientation but which otherwise supports landscape orientations on an iPhone 6 Plus while the home screen is in a landscape orientation results in a limbo state where the app's window is in a landscape orientation but the device is in a portrait orientation.


Facebook app rotate screen, Features - 4 orientation screen control (horizontal, vertical, reverse horizontal, Method to rotate screen on iPhone 8/ iPhone 8 Plus – Just rotate your iPhone to bring screen in the vertical mode 6S Plus, 7 Plus, or 8 Plus, you can rotate the layout of the home screen along Launch the Photos app on your iPhone or iPad. Use an Asset Catalog - I create portrait launch images for iPhone 6 and iPhone 6 Plus in a LaunchImages Asset, as well as a Landscape one for iPhone 6 Plus. The iPhone 6 Plus works, but iPhone 6 just shows a black screen. (There's no way to create a iPhone 6 landscape launch image in an asset catalog)


Camera orientation problem in android, The Samsung Galaxy Tab flips the screen orientation to landscape or portrait the orientation wrong, it was that we needed to tell Android how to rotate the How to use the updated camera app in Android Pie update for Galaxy S9 and S9 Plus? Thanks, Jorge In iOS 6 the the correct orientation was with the button facing  To turn off portrait orientation lock on IOS 8 follow the steps below: 1) Go to the home screen. 2) Swipe up from the bottom of your screen, control center should appear. 3) At the very top of control center click the lock on the far right (white background=landscape mode locked, if background is not white= landscape mode is on)