UIModalTransitionStyleFlipHorizontal在横向中垂直翻转 [英] UIModalTransitionStyleFlipHorizontal flips Vertically in Landscape
问题描述
在横向时,从一个视图(作为Navigation Controller堆栈的一部分)转换到另一个视图作为模态视图,将UIModalTransitionStyleFlipHorizontal设置为modalTransitionStyle,视图以横向模式垂直翻转。
When in landscape, transitioning from one view (that's part of a Navigation Controller stack) to another as a modal view, with UIModalTransitionStyleFlipHorizontal set as the modalTransitionStyle, the view flips vertically in landscape mode.
关于视图外观的其他信息在动画之后是很好的,虽然我注意到视图的帧大小不会改变,这会导致其他我的代码的地方。我想如果我解决任何正在做这个特定的翻转垂直而不是水平,它将解决其他问题。
Everything else about the look of the views is fine after the animation, though I did notice that the frame size of the views isn't changing which is causing issues in other places of my code as well. I figured if I fix whatever is making this particular flip vertical instead of horizontal, it will fix the other issue.
我假设它与窗口本身没有改变方向,但我不能确定是这样。
I assume it has something to do with the window itself not changing orientation, but I'm not sure that's it.
任何人都有任何想法?
推荐答案
与WWDC的苹果工程师谈到UIModalTransitionStyleFlipHorizontal不工作景观,它会翻转看起来像垂直。
Talked to an Apple Engineer at WWDC and figured out the UIModalTransitionStyleFlipHorizontal does not work in landscape, it will flip what looks like in vertical.
我提到的另一个问题是因为我没有正确调整框架到视图。
The other issue I mentioned was because I wasn't adapting a frame to the view correctly.
这篇关于UIModalTransitionStyleFlipHorizontal在横向中垂直翻转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!