当设备方向改变时,带有 Over Current Context 的 iOS 10 UIViewController 不会旋转

And*_*age 5 rotation orientation uiviewcontroller ios uimodalpresentationstyle

我已将演示文稿类型设置为情节提要中的“当前上下文”。

当调用 segue 时,新的 UIViewController 会正确显示。

但是,当设备方向更改时,新的 UIViewController 不会旋转,即使其父 UIViewController 也会旋转。

在 StackOverflow 上搜索,我没有看到任何现代(iOS 9 及更高版本)对此的引用,仅用于处理 iOS 6 / 7。

如果在代码中设置,则 UIModalPresentationStyle 将设置为 overCurrentContext。