Questions tagged [segue]

In iOS and Mac OSX, segue is a configurable object which specifies a transition from one scene to another.

Segues are visual connectors between view controllers in your storyboards, shown as lines between the two controllers. They allow you to present one view controller from another, optionally using adaptive presentation so iPads behave one way while iPhones behave another.

5127 questions
1
vote
1 answer

Is it possible to create Custom Segue which transitions from right to left

I'm creating an iOS app with Swift and I'd like to create custom segue which transitions from right to left. The default transition way is from left to right but I do need to have the opposite way of transition. I just wrote the code like…
Dave
  • 405
  • 4
  • 17
1
vote
1 answer

Passing Data Between ViewControllers in Swift using segue

I have a problem with the code that works perfectly in the tutorial that I am watching. I saw that in the tutorial they are using Swift 1 and I think I have Swift 2. the first viewcontroler: import UIKit class ViewController:…
Vlad Radoi
  • 31
  • 3
1
vote
1 answer

Show Segue from button opens without navigation controller

I have two view controllers and a Navigation contoller in a storyboard. In the first view controller I have two buttons. Both buttons segue to the second view which contains a map and opens the map with different info. They are both of the kind…
JoeyA
  • 21
  • 1
  • 3
1
vote
1 answer

Navigation Controller Clear in Unwind Segue

I have a segue connecting two views. In the parent view, the navigation bar is a gray color, and in the child view, it's clear. When unwinding the segue, the navigation bar in the parent controller is now clear as well. How to fix this? Parent…
Alex Smith
  • 385
  • 4
  • 21
1
vote
2 answers

How do you segue in a mac application without creating a new window?

I'm trying to segue to the bottom view controller after hitting the submit button, but when I do it creates a new window. Storyboard
Adam
  • 17
  • 5
1
vote
1 answer

How do I stop a segue from happening in Swift?

I have a login scene that segues to another scene when the user clicks the login in button, but, I'm trying to stop it from happening when the user email and password is incorrect. I'm using Firebase and this function below checks to see whether the…
Amissi
  • 167
  • 2
  • 12
1
vote
0 answers

Click on UITextfield navigates back to previous view

I have made an application in Swift for iOS with 2 view controllers in the same story board. I have connected both views using a segue. It navigates perfectly as wanted. In second view i have added two UITextFields and a UIButton. When I click on…
Saransh Seth
  • 77
  • 1
  • 1
  • 11
1
vote
2 answers

Passing values of type User over a segue

I have a class of User that has a lot of user data in it. Like a contact app, I would like when someone taps on the contact it loads a contact card. Usually I use prepareForSegue and a storyboard segue to pass values of String, Int, Array, etc but I…
Michael Williams
  • 1,402
  • 2
  • 14
  • 27
1
vote
3 answers

Pass data to rear view using SWrevealviewcontroller

I need to pass front ViewController to rear ViewController using SWRevealViewController, but I completely don't know how to do it. The variable in rear view looks like this: var mainView : ViewController! Any suggestions how to pass into it front…
Szymon Mrozek
  • 117
  • 1
  • 6
1
vote
2 answers

performSegueWithIdentifier from a NSView subclass?

I have a document window that contains a number of NSView subclasses, switched between using a tab control. Each of the subclasses, and the window's ViewController, support different user actions accessed through menu items tied to the First…
Maury Markowitz
  • 9,082
  • 11
  • 46
  • 98
1
vote
3 answers

datePicker date using segue

In SWIFT, I am using a viewcontroller (VC2) to hold a datePicker which I get the date from and pass it back to VC1. VC1 have a button which load VC2 through segue. The problem that when I get the first date and unwindsegue back to VC1 and next I try…
hamoti71
  • 21
  • 3
1
vote
2 answers

Passing UITextField text to UILabel on different View Controller

I am trying to pass UITextField's text from View Controller 1 to the UILabel in View Controller 2. I am using segue to pass the information, but I am not getting anything on Label. It seems like the text from the text field becomes NULL in when it…
OHHO
  • 143
  • 2
  • 9
1
vote
2 answers

Pass data through a segue via a button in a cell… Not working…

I've got a rather complicated cell in a custom UITableView. There's multiple elements in that cell, and I would like to be able to show a map controller when the user is clicking on a specific image. I first tried to do that with a simple button…
petaire
  • 495
  • 1
  • 10
  • 23
1
vote
0 answers

Segue not passing UIImage

I am trying to segue an array of images from a UICollectionViewController to a UITableViewController with static cells. The setup is that when a user presses a cell in the collection view controller, the UIImage in that cell segues to the…
Annabelle Sykes
  • 263
  • 6
  • 17
1
vote
4 answers

is there a way of dismissing two uiViewControllers at the same time in Swift?

In my swift app I have a UIViewController with a button. This button opens up the UIViewController number 2 and there user has another button. When user presses it - he opens UIViewController number 3. There is also a button and when user presses it…
user3766930
  • 5,629
  • 10
  • 51
  • 104