Moving UIViewController from one window to another breaks rotation in iOS 8.1

Originator:matthiasplappert
Number:rdar://18894053 Date Originated:11/06/2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8.1
Classification:UI/Regression Reproducible:Always
 
Summary:
Moving a UIViewController instance from the main window to a different window by setting it as the rootViewController breaks rotation behavior on iOS 8.

This is a regression that first occurred in iOS 8.1. iOS 8.0.x and iOS 7.x are not affected.

Steps to Reproduce:
Download the attached example project and perform the following steps:

1. Run on iPhone with iOS 8.1
2. Tap the "New Controller" button while in portrait mode
3. Notice that the blue view is now in fullscreen
4. Rotate the device to landscape
5. Notice that the rotation works properly
6. Rotate back to landscape
7. Dismiss by tapping the blue view
8. Tap the "Re-use Controller" button while in portrait mode
9. Notice that the blue view is now in fullscreen
10. Rotate to landscape
11. Notice that the landscape view is not properly sized
12. Restart the app before trying again to restore the initial state

Expected Results:
The blue view is properly sized to occupy the entire UIWindow.

Actual Results:
The blue view is improperly sized.

Version:
iOS 8.1

Notes:


Configuration:
All hardware

Attachments:
'Fullscreen.zip' was successfully uploaded. (http://cl.ly/1a1S2r3T363m)

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!