Device orientation should not affect UIWindows attached to external UIScreen

Originator:joachimb
Number:rdar://20868459 Date Originated:07-May-2015 09:12 PM
Status:Duplicate/19144656 Resolved:Duplicate/19144656
Product:iOS SDK Product Version:8.3
Classification:Other Bug Reproducible:Always
 
Summary:
When connecting a TV (or other external monitor) using the HDMI adapter (or AirPlay, or whatever) to an iPad, and running an app that attaches a UIWindow with a rootViewController to the UIScreen of that TV, the iPad's orientation should not affect the orientation of the image on the TV.

Steps to Reproduce:
1. Write an app that attaches a UIWindow with a rootViewController to any connected UIScreens (see attached sample)
2. Rotate your iPad into landscape
3. Attach an external monitor to the iPad
4. Run the app

Expected Results:
5. The image on your TV is right-side-up

Actual Results:
5. The image on your TV is sideways with a black bar along the edge

Version:
iOS 8.3

Notes:
This is a regression since iOS 7, and is caused by the orientation compensation code in UIScreen added in iOS 8. I'm guessing I'm the only one in the universe that uses UIWindows attached to UIScreens... :( I love that feature though, don't remove it!!!

Configuration:
iPad Air

Attachments:
https://www.dropbox.com/s/9rg0nok4mm80pn2/UIScreenWithWindowIOS8OrientationBug.zip?dl=0

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!