Launching a portrait-only app from iPhone 6 Plus in landscape breaks layout
| Originator: | DavidKlionsky | ||
| Number: | rdar://18431062 | Date Originated: | 9/23/2014 |
| Status: | Closed | Resolved: | 10/6/2014 |
| Product: | iOS SDK | Product Version: | iOS 8 |
| Classification: | Reproducible: | Yes |
Summary: My root view controller is a subclass of UINavigationController with its orientation mask set to be portrait only. When you launch the app on an iPhone 6 Plus in landscape mode, the app's window is set to have landscape size but is positioned like it should be for portrait mode, causing half the screen to be empty. Rotating the device does not fix the orientation, the only way it can be fixed is to force quit the app and launch again with the device in portrait. Steps to Reproduce: 1. Create a new single view controller iOS project in Xcode. 2. Delete the Main storyboard created by the template and delete it from the Main Interface setting in the target settings. 3. Create a subclass of UINavigationController and override its supportedInterfaceOrientations method to return only UIInterfaceOrientationMaskPortrait. 4. In the app delegate, create a window for the app programmatically, create an instance of the new navigation controller subclass, create an instance of ViewController (from the template), set it to be the root controller of the navigation controller and set the navigation controller to be the window's root view controller. 5. Open the iPhone 6 Plus simulator and rotate it to landscape. 6. Run the app on the iPhone 6 Plus simulator. Expected Results: The simulator should reorient itself to portrait mode and the view controller should fill the screen. Actual Results: The view controller only occupies about half the screen and is locked in landscape orientation. Version: iOS 8 Notes: Configuration: iPhone 6 Plus Attachments: 'PortraitTest.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
This is resolved in the iOS 8.1 beta.