简体   繁体   English

情节提要中封面垂直过渡的对面

[英]Opposite of Cover Vertical transition in Storyboards

I was wondering how i could create a segue with the exact opposite transition of cover vertical! 我想知道如何创建一个与封面垂直方向完全相反的segue! Cover Vertical comes from bottom to top, i want a top to bottom transition. Cover Vertical是从底部到顶部的,我想要从顶部到底部的过渡。 How could i achieve this? 我怎样才能做到这一点? Thanks in advance! 提前致谢!

I believe your question can be answered by another stackoverflow post 我相信您的问题可以通过另一个stackoverflow帖子来回答

And from Apple 而来自苹果

The key is to implement your own - (void)perform method. 关键是要实现自己的- (void)perform方法。 Before the + animateWithDuration:delay:options:animations:completion: method, set the viewController.view.origin to be below the screen and in the animations block adjust it's height. + animateWithDuration:delay:options:animations:completion:方法之前,将viewController.view.origin设置在屏幕下方,然后在动画块中调整其高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM