prefersStatusBarHidden documentation does not match behaviour

Originator:douglashill
Number:rdar://22565090 Date Originated:03-Sep-2015 10:25 PM
Status:Closed Resolved:
Product:Documentation Product Version:
Classification: Reproducible:
 
Summary:
The documentation for -[UIViewController prefersStatusBarHidden] states ‘Default value is NO.’. This does not match observed behaviour.

Steps to Reproduce:
1. Put a view controller on screen
2. Rotate to landscape on iPhone
3. Look at documentation for prefersStatusBarHidden

Expected Results:
For either UIViewController’s implementation of this method to always return NO, or for the documentation to state what is actually does. My opinion is that the behaviour is good and the documentation should change to match.

Actual Results:
The status bar is hidden in landscape because this method returns YES if the view controller is in a vertically compact environment.

Version:
UIViewController Class Reference

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/#//apple_ref/occ/instm/UIViewController/prefersStatusBarHidden

Notes:


Configuration:


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!