Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Playlist Browser with Swift Working With Multiple View Controllers Segues

Nicolo Figiani
Nicolo Figiani
4,012 Points

Is that true that push and modal segues are deprecated?

in the iOS developer library in the "Segue types" section (https://developer.apple.com/library/ios/recipes/xcode_help-IB_storyboard/chapters/StoryboardSegue.html), is reported that both "modal" and "push segues" are deprecated.

Is that true? Do you know what segues we can use instead and how they work? A reference to "Show", "Show Detail" and "Present Modally" is done but who knows actually how do they work?

Thanks, bye!

1 Answer

Dominic Bryan
Dominic Bryan
14,452 Points

From what xcode is telling me push and modal (along with replace and popover) are all deprecated.

But when creating a segue you may notice that under adaptive segues it says this: -Show(e.g. Push) -Show Detail(e.g. Replace) -Present Modally -Present as Popover

For example in a app I built I have a table view of stories that when you select a row the segue Show Detail(e.g. Replace) is used to show the detail of the story.

Hoped this helped

Dom