I would like to adapt between two different UIPresentationController
, according to the current trait collection. For example, the two controllers could be UIPopoverPresentationController
for any traits and a custom UIPresentationController
for compact horizontal traits (e.g. iPhone).
Unfortunately this doesn't seem possible in the latest iOS 8. In particular:
You can set a
UIAdaptivePresentationControllerDelegate
to swap out the presentation style, but only permits the standard full screen presentation controller.You can choose which presentation controller to use just before presenting the view controller, but this doesn't actually adapt after presenting when the traits collection changes e.g. in iPad multitasking or orientation change.
A couple of different attempts at a solution: Tumblr, Irace
Any suggestions?