UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown doesn't support both variants of the portrait orientation?

泪湿孤枕 提交于 2019-12-11 18:10:07

问题


I'm using the UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown transitions to flip between view controllers.

Problem is when I try to support the upsidedown portrait orientation , these lovely curl transitions still think they are in normal portrait orientation, thus the curlup goes from top to bottom and the curldown goes from bottom to top.

It seems like these transitions doesnt care about the device orientation and neither the interface orientation, so - is there a way to force them to flip?


回答1:


Put them in a rotated coordinate system. See the transform property of UIView.



来源:https://stackoverflow.com/questions/3379258/uiviewanimationtransitioncurlup-uiviewanimationtransitioncurldown-doesnt-supp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!