Form sheets underneath status bar on iPad in compact widths

Originator:douglashill
Number:rdar://23257624 Date Originated:26-Oct-2015 04:08 PM
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification: Reproducible:
 
Summary:
Form sheets appear underneath the status bar on iPad in horizontally compact environments (This happens when using Split View.)

This only happens if we prevent adaptivity. By default form sheets adapt to full screen presentations.

Steps to Reproduce:
A sample project is attached which demonstrates the problem. Run it on an iPad Air 2 in portrait in Split View.

1. Present a view controller with its modalPresentationStyle set to UIModalPresentationFormSheet
2. Prevent adaptivity by returning UIModalPresentationNone to adaptivePresentationStyleForPresentationController: or adaptivePresentationStyleForPresentationController:traitCollection:
3. Present the view controller on iPad in a horizontally compact width

Expected Results:
The top of the presented view should be just underneath the status bar, as it is on iPhone.

Actual Results:
The presented view is shown underneath the status bar, and the navigation bar is only 44 points high, so some content is covered.

Version:
iOS 9, Xcode 7.1 (7B91b)

Notes:
This problem does not happen if the presented view has a preferredContentSize. This can be seen by setting SPECIFY_CONTENT_SIZE to 1 in DetailViewController.m.

Configuration:
iPad Air 2 simulator

Attachments:
'Form sheets under status bar.zip' was successfully uploaded.

Comments

https://www.dropbox.com/s/5nb3fjq4ny9h0to/Form%20sheets%20under%20status%20bar%2023257624.zip?dl=0

By douglashill at Oct. 27, 2015, 12:06 p.m. (reply...)

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!