I have a view controller that I'm presenting in a universal iOS application. On the iPhone, it displays using a custom UIPresentationController which adjusts the frame of the presented view using UIPresentationController
's frameOfPresentedViewInContainerView
method. This is working fine, however...
On iPad, I'd like the same view controller to display as a popover when the UITraitCollection
has a Regular
width, but to switch to my custom UIPresentationController when in Compact
width. Is this achievable?