UIPresentationController adaptivePresentationStyle is not called

Originator:steipete
Number:rdar://22398415 Date Originated:24-Aug-2015 11:03 AM
Status:Open Resolved:
Product:iOS SDK Product Version:8.4.1
Classification:Other Bug Reproducible:Always
 
Summary:
-[UIPresentationController adaptivePresentationStyle] is not called, and not deprecated.

My investigation suggests -[UIPresentationController adaptivePresentationStyle] is not called  if the app is linked on or after iOS 8.3. It is replaced by -[UIPresentationController adaptivePresentationStyleForTraitCollection:].

Steps to Reproduce:
1. Open the attached sample project with Xcode 7, which attempts to adapt to full screen for horizontally compact size classes, and logs when adaptivePresentationStyle is called.
2. Run it
3. Look for adaptivity, and look in the console

Expected Results:
For either this method to be called, or for it to be marked as deprecated, or at least documented as not being called. (My preference is deprecation.)

The presented view should be full screen on iPhone 6 Plus in portrait and a small box in the corner in landscape.

Actual Results:
This method is not called (nothing logged in the console), and nothing in the documentation suggests this method would not be called.

The view is in the example never adaptive, always appearing in the top left corner of the container.

Notes:
Related bug: 22394065. Dupe of rdar://22394107 (PSPDFKit co-worker)

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!