Zhe
Zhe

Reputation: 3

How to transit to another view from right side, instead of the default transition(appears from the bottom)?

The default transition from one view to another is that the new view appears from the bottom. How can I change it so that the new view appears from the right side?

Upvotes: 0

Views: 67

Answers (1)

Eneko Alonso
Eneko Alonso

Reputation: 19702

You need to use a UINavigationController.

The easiest way to do that is to select your starting view controller on the storyboard and then, on the menu, choose Editor -> Embed In -> Navigation Controller.

At that point, your segues of type Show will do a push animation.

Upvotes: 1

Related Questions