Expose UIWindow Orientation Setters (Non-Animated)

Originator:PERL.programmer
Number:rdar://12070377 Date Originated:09-Aug-2012 06:17 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:5.0
Classification:Enhancement Reproducible:Always
 
Summary:
UINavigationController is capable of forcing the screen rotation to change, for example when you pop from a landscape view controller to a view controller that only supports portrait. Unfortunately the only way to replicate this behavior with a custom root UIViewController is to disable autorotation, hook into device orientation changes, and rewrite all the code necessary to animate rotations and keep view controller states up-to-date.

As far as I could find from my digging, UINavigationController is using [UIWindow _updateToInterfaceOrientation:animated:], or a related method, to perform the necessary orientation update after the transition animation is completed. Without access to this method, or something similar, it is completely impossible to replicate UINavigationController in a clean manner. With the proscription on subclassing UINavigationController, this limits the customization abilities of developers of mixed orientation applications.

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!