简体   繁体   English

Xcode Interface Builder Segue动画

[英]Xcode Interface Builder Segue Animation

I have added a few segues between different view controllers through the interface builder. 我通过界面构建​​器在不同的视图控制器之间添加了一些命令。 However the transition animation is always the same (view is pulled up from bottom). 但是,过渡动画始终相同(视图从底部向上拉)。 How can I have different segues using different transitions like pulled in from the left or right. 我如何使用不同的过渡效果(例如从左侧或右侧拉入)来拥有不同的姿势。 So far I can only seem to find results relating to building custom transitions where as I would happily use existing ones like the left/right transition seen when using the navigation controller. 到目前为止,我似乎只能找到与构建自定义过渡有关的结果,因为我会很高兴地使用现有的过渡,例如使用导航控制器时看到的左/右过渡。

you can use some predefined animations.. 您可以使用一些预定义的动画。

Just click the segue from the storyboard, and in the right side panel, click the show attributes inspector icon, and then you will see the dropdown for choosing animation like shown in the image below: 只需单击情节提要中的segue,然后在右侧面板中单击“ 显示属性检查器”图标,然后您将看到用于选择动画的下拉列表,如下图所示:

在此处输入图片说明

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

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