如何使用 segues 执行自定义动画?

How to perform custom animation using segues?

在 Storyboards 中,您可以通过单击 segue(两个屏幕之间的圆圈符号)自定义转场,并将转场设置为 "Cover Vertical"、"Flip Horizontal"、"Cross Dissolve" 或"Partial Curl"(如果您根本不需要任何动画,可以取消选中 "Animate")。

如果我使用故事板,是否可以通过代码自定义此过渡?

好的,我终于在这里找到了所有答案: http://www.appcoda.com/custom-segue-animations/

Creating a custom segue is not difficult at all, as it consists of a standard programming technique in iOS. What is actually only required, is to subclass the UIStoryboardSegue class and override just one method, named perform. In this method the custom animation logic must be implemented. Triggering the transition from a view controller to another and back must also be programmatically performed by the developers, but this is a totally standard procedure.