Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIModalTransitionStyleFlipHorizontal flips Vertically in Landscape

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.

Anyone have any ideas?

like image 898
Philippe Sabourin Avatar asked Dec 01 '25 04:12

Philippe Sabourin


1 Answers

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.

like image 178
Philippe Sabourin Avatar answered Dec 03 '25 17:12

Philippe Sabourin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!