Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between push and modal segues

I just can't figure it out how to use a segue in my storyboard. When should I use a push segue and when a modal segue? How are they different from each other?

like image 967
Rahul Singh Avatar asked Dec 21 '22 17:12

Rahul Singh


1 Answers

You use a push segue if you want to push from one view controller to another when in the context of a navigation controller.

You can use a modal seque to present one view controller on another. This is normally done from animating from the bottom to top of then screen. This can be done from inside, or not inside, a navigation controller.

like image 86
James Paolantonio Avatar answered May 07 '23 05:05

James Paolantonio