Public API to be able to have a window that does not affect status bar or rotation.

Originator:david.ronnqvist
Number:rdar://20665713 Date Originated:
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
When trying to display views above the rest of the application (for example custom in-app notification views, floating views, or other non-fullscreen views above the rest of the application) it is tempting to use a window so that floating UI and the rest of the app can operate independently. 

However, there is no public API for opting that window out from influencing interface orientation and status bar. This means that adding another view on top of the main apps window effectively breaks shouldAutorotate and preferredStatusBarStyle in the main app, since these callbacks will go to the root view controller of the top most window.

It would be nice to have a public API in the window or root view controller to opt out of trying to control rotation and status bar. 

One workaround is to have a root view controller of the app that presents the app as one child controller and any floating view as another child controller. However, this has problems with modal presentations and does not work for displaying anything above alerts or above the status bar.

Steps to Reproduce:
n/a

Expected Results:
n/a

Actual Results:
n/a

Version:
n/a

Notes:


Configuration:
n/a

Attachments:

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!