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

How to get indexPath match I click send data with segue

I hope when I click the UITableView row it will send a ID to next UIView the ID get form json data I can not get the UITableView indexPath have some error. How can I fix this ? this is my code func get(){ let url = NSURL(string:…
Alson Chi
  • 23
  • 3
1
vote
3 answers

Custom Fade Segue not animating if I present the destinationViewController

I've written a custom segue to get a fade effect, which i'm trying to achieve by inserting the destination view controller below the source view controller and animating the alpha of the source view controller to zero. However, adding the…
Chris Byatt
  • 3,689
  • 3
  • 34
  • 61
1
vote
2 answers

Swift Segue from left to right and back (unwind) View Controller -> Navigation View Controller -> Table View Controller

I have this story board and I'm trying to make custom segue to slide the View Controller to the left side and from right to present the Table view Controller. I need unwind segue to go back to the Main view controller (the one I segue from). I know…
KO55A
  • 39
  • 9
1
vote
1 answer

Set initial view controller of a navigation controller

I'm developing a simple iOS app to learn Swift and iOS programming. I was wondering what would be the "best" way to present, on app launch, a different View Controller than the first one in the Navigation Controller stack. Consider this storyboard…
1
vote
2 answers

How to pass data when the back button clicked?

I'm trying to pass data from UITableview to another UITableview, I succeed to pass data when I press on cell but I couldn't pass data back when I press on back button of navigation bar; I've tried global variables to solve this problem but since I'm…
User
  • 123
  • 4
  • 13
1
vote
0 answers

How to perform a segue to a different View Controller for each cell of a UICollectionView

Below is my code for my ViewController.swift I have a UICollectionView with 4 cells. I want each cell to segue to a different View Controller. Can someone point me in the right direction? The identifiers I have for each the segues on my Storyboard…
1
vote
1 answer

Use UITextField input to update proximityUUID.UUIDString between segues

Newbie Question I am trying to use the text entered by a user from the UITextField to update a variable in another Viewcontroller #2. I successfully added a segue in Viewcontroller #1 and can access the properties in Viewcontroller #2. However when…
1
vote
1 answer

Having issue with UISplitViewController

I have created a dictionary application and I am using UISplitViewController to search and select a word, my application crashes with this log : -[MeaningViewController topViewController]: unrecognized selector sent to instance…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
1
vote
1 answer

swift ios tabBar didSelectItem present login screen

I am trying to display a login screen if the user clicks on tab 2 or tab 3. I tried adding: override func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem) { if item.tag == 1 || item.tag == 2 { if LocalStore.getToken()…
user2636197
  • 3,982
  • 9
  • 48
  • 69
1
vote
2 answers

iOS dismiss a chain of ViewControllers

I'm a bit puzzled by the following behavior in iOS (target is iPad with iOS 9.3 in Xcode 7.3.1). I have the following hierarchy: Storyboard1 | | initial | A (UIViewController) | | UIStoryboardSegue Present Modally | B (UINavigationController) | |…
Wolfy
  • 1,445
  • 1
  • 14
  • 28
1
vote
0 answers

Dismissing Modal View Controller Causes Multiple VC's to Close

This question is hard for me to ask without a reference, so please see the image above. I am trying to dismiss the modal view controller on the far right of my storyboard. The problem is when the view controller on the right hand side it dismissed…
i2Fluffy
  • 333
  • 2
  • 12
1
vote
4 answers

One segue to rule them all

I have 4 ViewControllers in my storyboard. I want all of them to be able to access my "Settings" ViewController by performSegue. Is it possible to have ONE segue to perform this, instead of ctrl + drag from each and every ViewController to my…
George Asda
  • 2,119
  • 2
  • 28
  • 54
1
vote
0 answers

Is it possible to use a constant for the identifier of a storyboard segue in Xcode's Interface Builder?

I was wondering if it is at all possible to use constants defined in, say, a Swift source file named Constants.swift in the "Identifier" field for a Storyboard Segue in Xcode's Interface Builder. For example, if I have a constant declared like…
1
vote
1 answer

How to performSegueWithIdentifier() from dynamically created UIViewController whose storyboard property is nil

I'm working on a project with has a search functionality.I've 3 view controllers i.e. HomeViewController, SearchResultViewController and DetailViewController. On the main page, I've a search bar (using UISearchController) within the navigationBar…
Rahul Chaurasia
  • 1,601
  • 2
  • 18
  • 37
1
vote
2 answers

How to perform segue inside unwind function

I have 3 MVCs and name them A, B, C here. A is the main MVC with a button "Menu" connected to B with popover segue. A also connected to C with a manual show segue. B is a popover MVC with a button "Detail" connected to A with unwind segue. C is the…
user1429171
  • 165
  • 8