我有一个在通用iOS应用程序中呈现的ViewController。在iPhone上,它使用自定义UIPresentationController显示,该Controller使用UIPresentationController的frameOfPresentedViewInContainerView方法调整呈现View的框架。这工作正常,但是......在iPad上,当UITraitCollection具有Regular宽度时,我希望相同的ViewController显示为弹出窗口,但在紧凑宽度。这可以实现吗? 最佳答案 这是不可能的。