Unwind segues give a way to "unwind" the navigation stack back through push, modal, popover, and other types of segues. use unwind segues to "go back" one or more steps in navigation hierarchy. Unlike a normal segue, which create a new instance of their destination view controller and transitions to it, an unwind segue transitions to an existing view controller in navigation hierarchy. use these callbacks to pass data between the view controllers.
Questions tagged [unwind-segue]
312 questions
3
votes
1 answer
Why does my unwind segue go back too far?
I'm trying to create the controller architecture for the signup process of my app. Below is an image of the current state:
The app starts at a login page the first time and if the user clicks "SignUp", a navigation controller is presented modally…

Ever Uribe
- 639
- 6
- 13
3
votes
0 answers
Unwind Segue to two different UIViewControllers
I have an app with a UIViewController that I am using to add an item to a UITableView. The user fills out a few fields, and then the data displays in the cells. I'm doing an unwind and using a function on the calling view, to retrieve the data. …

Scott Kilbourn
- 1,545
- 6
- 18
- 40
3
votes
1 answer
Unwind segue in multiple storyboards environment
My app has more than two storyboards. In storyboard A, it has navigation view controller, root view controller and several view controllers.
It also has an unwind segue, like returnToTopScreen.
Storyboard B has several view controllers. At…

kmugitani
- 615
- 1
- 6
- 13
3
votes
0 answers
Unwind Segue out of a UIPopoverController
I've got UIViewController that I've loaded from a UIStoryboard by sending it initialViewController (it is not my App's main storyboard).
I have an unwind segue used in that storyboard. Its exit point is in an unwind action of a UIViewController…

Benjohn
- 13,228
- 9
- 65
- 127
3
votes
1 answer
Unwinding multiple ModalViewControllers using Unwind Segue
I have a a project that displays multiple view controllers.
The ViewController A is the Root. A presents B using a Modal presentation. B presents C using a Modal presentation, and so on.
I have an Unwind segue that unwinds back to the root, however…

DevC
- 6,982
- 9
- 45
- 80
2
votes
1 answer
How to lookup or aggregate a field of an object in an array of javascript objects (in mongodb)?
I want have the field contractType in my mongoose schema, is an array of objects that each one has the property authorizedBy into the second level.
contractType field could have many items and I want to know each authorizedBy finding it in other…

Cristobal Contreras
- 21
- 3
2
votes
1 answer
Unwind segue is not found when unwinding from tableview Swift
I'm having a crash when unwinding from RouteTableViewControllerto AlarmAddEditViewController. in console I see the message : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver…

Vincenzo
- 5,304
- 5
- 38
- 96
2
votes
2 answers
How do you conditionally modify a UINavigationController's back-stack to skip previous entries regardless of where you came from?
We're trying to figure out how to conditionally exclude certain screens in our back-stack when navigating backwards. For instance, take the following screens:
Main Dashboard (You can go to 2 or 3 from here)
Order Management (you can go to 3 or 6…

Mark A. Donohoe
- 28,442
- 25
- 137
- 286
2
votes
1 answer
View controller doesn't show due to another presented view haven't finish.
This is my first question, hope it won't be too stupid.
Here is my app:
VC1
VC2 - ChatTableViewController
VC3 - PopupPhotoSourceVC
VC1 - a button to present VC2 modally
VC2 - a "Bar" button to present VC3 modally (VC3 presentation set to "Over…

Hungo
- 31
- 3
2
votes
1 answer
Swift - Delegate through Nav Controller
I'm going to include my full code in this but I will try to give pointers to where the relevant bits are. Basically I am returning to a view controller from an Unwind Segue with some new data. I am using that data successfully in the 'NBARotoHome'…

Louis Sankey
- 481
- 8
- 26
2
votes
1 answer
Is it possible to use an unwind segue from a single modal view controller back to one of multiple instances of the same source view controller?
My Storyboard layout is such that I have MainVC connected to ModalVC via a segue that presents it modally.
However, programmatically, at runtime, I instantiate five instances of MainVC in total.
As a result, all five instances of MainVC, with the…
user7192663
2
votes
1 answer
How do I use an unwind Segue to pass data back from the second view controller to the first view controller?
I have created two view controllers. The first view controller sends a name to the second view controller where the name is used to greet the user and prompt the user for their height in inches.
The problem I am having is in sending the height…

lopezdp
- 1,538
- 3
- 21
- 38
2
votes
3 answers
Unwind Segue Navigation Bar Button Xcode 8.0 Swift 3.0
I want to create an app in Xcode 8.0 that lets the user press a bar button item in the navigation bar. Once this button has been clicked an unwind segue will take place whilst also printing, "helloWorld" to the output section at the bottom of Xcode.…

D. Murphy
- 67
- 3
- 11
2
votes
2 answers
unwind segue in UIAlert not working
I am trying to present an alert to the user if they need to be logged in to access a feature but when I press the login button in the alert self.self.performSegueWithIdentifier("tryonToLogin", sender:self) does not appear to do anything.…

Lonergan6275
- 1,938
- 6
- 32
- 63
2
votes
2 answers
Come back to the tabBarController, swift
Currently on my viewController : Upload, my button send the data to my database only if all the information are filled out, and I come back to the preview view (table View) with :
self.navigationController?.popViewControllerAnimated(true)
I would…

L.Vl
- 113
- 2
- 14