UIPresentationController adaptivePresentationStyle is not called

Number:rdar://22394107 Date Originated:23-Aug-2015 03:07 PM
Status:Closed Resolved:
Product:iOS SDK Product Version:
Classification:Other bug Reproducible:
-[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.

iOS 9 beta 5

Related bug: 22394065

iPhone 6 Plus simulator

'adaptivePresentationStyle not called.zip' was successfully uploaded.


Documentation was updated in early 2016

By douglashill at June 15, 2016, 7:41 a.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!