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
2
votes
1 answer
Unwind Segue - Where to Drag Exit?
I am trying to understand how the unwind segue works. First I created 3 ViewControllers.
GlobalVC
-LoginVC
-RegisterVC
I set the initial page the GlobalVC (only authenticated user can see). I set a segue from:
GlobalVC to LoginVC called…

senty
- 12,385
- 28
- 130
- 260
2
votes
1 answer
Unwind segue stopped working in iOS9 > Freeze with no crash
I have an iOS application with a main view controller that presents 2 modals in a row.
So this kind of sequence:
VC1 > M1 > M2
I have an unwind segue in modal 2 which I want to use jump back to VC1. In VC1 I added an…

freeBeerTomorrow
- 343
- 4
- 20
2
votes
2 answers
How has standard unwind segue changed in iOS 9?
I have an app with a main controller that pushes a child controller where the user makes a selection. At the top of this controller are cancel/save nav buttons, which dismiss the child and pass the data back to the parent. This works fine in iOS…

Carlos
- 5,991
- 6
- 43
- 82
2
votes
1 answer
Tab bar with slide out menu
RearViewController.m
-(IBAction)unwindFromViewController:(UIStoryboardSegue *)segue
{
if ([segue.identifier isEqualToString:@"unwindToViewController"]) {
ViewController *detail = [self.storyboard…

Pavithra Selvaraj
- 85
- 9
2
votes
1 answer
Go back using Unwind segue
am using storyboard with navigation controller having three viewControllers, the root controller and the other two remaining labeled as 1 2 and 3 respectively. as shown in the image
Now the problem is that i want to come back to the…

Nisar Ahmad
- 885
- 1
- 10
- 25
2
votes
1 answer
How to unwind segue with alert view in Swift?
I have several View Controllers. I need to return to the first View Controller if the Alert View is confirmed. This is how I would do it without the unwind Segue:
@IBAction func unwindToDelete ( segue: UIStoryboardSegue ) {
let alertView =…

Bahram Ghebray
- 107
- 1
- 11
2
votes
1 answer
UITabBarController With Unwind Segue In Swift Not Working
From doing several searches I have found that it is a common issue that the unwind segues were buggy when implementing a UITabBarController.
I created a simple UITabBarController with two views. View A and View B.
I followed the instructions at:…

Marc Morgan
- 21
- 4
2
votes
2 answers
Xcode 6 storyboard unwin segue action is not defined
I have been using unwind segues in my project for a while without problem. I set them up the way it's supposed to be, and it's been working fine. Then suddenly today in Storyboard, I get this warning "The segue <> action is not defined". I checked…

Van Du Tran
- 6,736
- 11
- 45
- 55
2
votes
0 answers
Exit segue Xcode 6.1.1 again not working
I am aware that exit segues where broke in early xcode 6 betas and swift. I have Xcode 6.1.1 installed but i do not seem to get it to work.
I do have this function in my destination ViewController
@IBAction func unwindToViewController(segue:…

Johannes
- 441
- 5
- 15
1
vote
1 answer
Unwind segue results in black screen? UITabBarController with embedded VCs and segues
I have the following hierarchy for my app:
UITabBarController, first tab is a BrowseVC (another UIViewController). BrowseVC has a SegmentedControl, each of which will show a version of the PersonVC (another VC with a UICollectionView in the…

Janene Pappas
- 1,366
- 12
- 26
1
vote
1 answer
How to perform an unwind segue from a custom tableview cell?
I'm trying to trigger a unwind segue from a button that is inside a custom table view cell. But it won't let me create the link between the exit and the view controller.

Jordan
- 127
- 1
- 1
- 9
1
vote
1 answer
Stuck with "Type of expression is ambiguous without more context" in prepare function
I'm new to coding Swift, so please excuse me if this error is a simple answer..
I am trying to transfer data to another viewcontroller, but struggling with "Type of expression is ambiguous without more context" error.
I made a @IBoutlet var…

Saisiot
- 13
- 2
1
vote
1 answer
Unwind to a specific view controller without a segue
When not using storyboards, how do you get the same functionality as an unwind segue? Say that I have a navigation controller with several view controllers in it, and I want to smoothly unwind back to a certain controller. How would you accomplish…

steventnorris
- 5,656
- 23
- 93
- 174
1
vote
1 answer
Segueing from Child ViewController
I have a situation where I am presenting a child view controller "B" onto another view controller "A". View controller "B" has 5 buttons which segue(push) to a third view controller, "C". The problem is once I'm at view controller "C", I want to be…

Anonymoose
- 31
- 1
- 5
1
vote
1 answer
How to convert Mango DB aggregation (unwind,match and project) query to java code
I want to convert this query to a java code with Aggregation and criteria using $unwind to get individual document and $project to get a personalized response.
db.getCollection('WarrantyCategory').aggregate([{
$unwind:…

Chedy
- 57
- 1
- 4