Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Playlist Browser with Objective-C Working With Multiple View Controllers Using Navigation Controllers

Shaun Kelly
Shaun Kelly
5,648 Points

Different between push and modal?...

MODAL: When you have one main scene and use a modal segue you are displaying a temporary scene on top of the main scene. Once finished it will be removed. This could possibly be useful if you have a app that needs an account to log in, a temporary scene shows up on top of the main scene to input a username and password. Once you attempt to log in the scene it will be removed and the main scene will show again. You can tell if it's using a modal segue because the temporary scene will animate upwards?

PUSH: This segue is best used for a stack of scenes, we navigate through these scenes using a navigation bar to move forward and back through the scenes like the setting on an iPhone. We transition between each scene using a push segue.

1 Answer

Chris Howie
Chris Howie
13,216 Points

Here is a great answer on stack overflow for you, I believe you are explaining it but I wanted to add more context for other Treehouse users.

Stack OverFlow: http://stackoverflow.com/questions/9392744/difference-between-modal-and-push-segue-in-storyboards

Here is some more information from the Apple Documentation:

https://developer.apple.com/library/ios/recipes/xcode_help-IB_storyboard/chapters/StoryboardSegue.html#//apple_ref/doc/uid/TP40014225-CH25-SW1