user5273262
user5273262

Reputation:

How to perform custom animation using segues?

In Storyboards, you can customize the transition by clicking on the segue (the circle symbol between the two screens) and set the Transition to "Cover Vertical", "Flip Horizontal", "Cross Dissolve" or "Partial Curl" (you can uncheck "Animate" if you don’t want any animation at all).

If I use a Storyboard, is it possible to customize this transition by code?

Upvotes: 8

Views: 13446

Answers (1)

user5273262
user5273262

Reputation:

Ok, I finally found all the answers here: 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.

Upvotes: 9

Related Questions