I have a viewcontroller implementing the UIPopoverPresentationControllerDelegate method of:
adaptivePresentationStyleForPresentationController(controller: UIPresentationController!, traitCollection: UITraitCollection!) -> UIModalPresentationStyle
As far as I understood, this should be called only for compact size such as iPhone 6, but not for iPad. But in one project, it is called even for iPad, and as a result, I don't get a popover but the full screen modal thing.
I can't see what could be causing this to happen. I looked into another project with roughly the same setup and confirmed that this method doesn't get called during iPad sim (only iphone).
Anyone else experience this?
I found out what's wrong. I picked the wrong func during code completion, the correct delegate method I meant to use is:
not