modalPresentationCapturesStatusBarAppearance breaks prefersStatusBarHidden for popped peeking view controller

Originator:an00na
Number:rdar://23000171 Date Originated:06-Oct-2015 05:54 PM
Status:Closed Resolved:in iOS 10
Product:iOS SDK Product Version:9.0
Classification:Other Bug Reproducible:Always
 
Summary:
If prefersStatusBarHidden is true after peek-n-pop view controller should hide status bar. However if modalPresentationCapturesStatusBarAppearance is also true, status bar is not hidden after popping.

Steps to Reproduce:
1. Launch sample app.
2. Press anywhere to peek & pop.
3. See status bar is shown.
4. Comment out the line below FIXME in PeekViewController.swift.
5. Repeat 1~3 to see the correct behavior.

Expected Results:
modalPresentationCapturesStatusBarAppearance should not affect prefersStatusBarHidden.

Sample code:
http://cl.ly/2P21143H1T0K

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!