我有一个在通用 iOS 应用程序中呈现的 View Controller 。在 iPhone 上,它使用自定义 UIPresentationController 显示,该 Controller 使用 UIPresentationController
的 frameOfPresentedViewInContainerView
方法调整呈现 View 的框架。这工作正常,但是......
在 iPad 上,当 UITraitCollection
具有 Regular
宽度时,我希望相同的 View Controller 显示为弹出窗口,但在紧凑
宽度。这可以实现吗?
最佳答案
这是不可能的。直接来自 Apple 的 "What's new in iOS8 guide"
With the amount of screen space available, the iPad has a regular size class in the vertical and horizontal directions in both portrait and landscape orientations.
关于ios - 使用带有水平紧凑型 UITraitCollection 的自定义 UIPresentationController,否则使用弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37540890/