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!
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
Nicolo Figiani4,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?
Dominic Bryan14,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