Provide public equivalent of [UIViewController _isInPopoverPresentation]

Originator:steipete
Number:rdar://22048335 Date Originated:29-Jul-2015 11:51 AM
Status:Open Resolved:
Product:Developer Tools Product Version:8.4
Classification:Enhancement Reproducible:Always
 
Summary:
Sometimes it’s necessary that a view controller knows if it is in a popover. Apple requires this functionality as well and has a private helper that looks at the nearest presentation controller to determine if it is presented as popover.

There should be a public way to determine just this. The current UIPresentationController API is a great step forward, yet it is hard to determine how a controller is *actually* presented on screen, after potential applied adaptivity.

For a full discussion, please read my blog post about it:
http://petersteinberger.com/blog/2015/uipresentationcontroller-popover-detection/

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!