View locked in Landscape renders a landscaped view in portrait

Originator:sreinhardt
Number:rdar://27570135 Date Originated:7/27/2016
Status:Open Resolved:
Product:iOS Product Version:10.0 Beta 3
Classification:UIKit Reproducible:YES
 
View Controller that should render only in landscape on iPhone devices, draws the landscape sized view in portrait.

Steps to Reproduce:
1. Existing View Controller is displayed in Portrait
2. Display a new view controller with preferredInterfaceOrientationForPresentation returning UIInterfaceOrientationLandscapeLeft; supportedInterfaceOrientations returning UIInterfaceOrientationMaskLandscape; and shouldAutorotate returning NO.

Expected Results:
New View Controller should display rendered correctly in Landscape

Actual Results:
A landscape sizing of the view is rendered in portrait, so it draws from the top-left and draws off screen to the right, while leaving the bottom half of the screen black.
Note 1: [[UIApplication sharedApplication] statusBarOrientation] returns UIInterfaceOrientationLandscapeLeft though the view is really being drawn in portrait.
Note 2: Backgrounding and returning to the app causes the view to draw correctly

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!