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
33
votes
2 answers

What are Anchor and Passthrough used for in popover segues?

In Xcode, a Popover segue has two connection fields named Anchor and Passthrough. What are they used for?
Prabhu Natarajan
  • 869
  • 1
  • 9
  • 13
33
votes
8 answers

NSInvalidArgumentException - receiver has no segue with identifier

I have been trying everything for hours, and nothing's worked. I am trying to segue between two view controllers, from one tableViewController to another tableViewController. The segue is hooked up to the top level view, not the tableviewcell. The…
32
votes
9 answers

Segue from one storyboard to a different storyboard?

I have too many views on one storyboard which is causing it to run really slow. I have been told that a solution to this issue would be to split the one storyboard into multiple storyboards. Could anyone tell me how I can segue from a view on…
BrownEye
  • 979
  • 2
  • 12
  • 21
32
votes
5 answers

How to execute some code after a segue is done?

Is it possible in iOS 6 to know when a UIStoryboardSegue has finished its transition? Like when i add a UIStoryboardSegue from UIButton to push another UIViewController on the navigationcontroler, i want to to something right after the…
bogen
  • 9,954
  • 9
  • 50
  • 89
31
votes
2 answers

prepareForSegue called before didSelectRowAtIndexPath only when third segue is added

I have 3 segues to 3 different views. 2 are implemented with no problem, it is when the third is created that the problems occur. I have the following didSelectRowAtIndexPath method: - (void)tableView:(UITableView *)tableView…
Atma
  • 29,141
  • 56
  • 198
  • 299
31
votes
4 answers

Unwind segue with Navigation back button

I have watched the apple demo video on storyboard implementation with the unwind segues section and seen the demo using custom buttons on the main view. That works fine. I have also seen a good example of the same thing here which works also.…
Alan
  • 692
  • 1
  • 7
  • 16
30
votes
2 answers

UISearchController persisting after segue

I have an app with a UISearchController. This element of the UI is completely set up in code like this: searchController = UISearchController(searchResultsController: nil) searchController.searchResultsUpdater =…
Kilian
  • 2,122
  • 2
  • 24
  • 42
30
votes
4 answers

Is it possible to perform a Popover Segue manually (from dynamic UITableView cell)?

I need to perform a Popover segue when user touches a cell in a dynamic TableView. But when I try to do this with this code: - (void)tableView:(UITableView *)tableview didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [self…
Hlib Dmytriiev
  • 303
  • 1
  • 3
  • 5
29
votes
2 answers

DestinationViewController Segue and UINavigationController swift

So I have a prepareForSegue method like this: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if segue.identifier == "fromEventTableToAddEvent" { let addEventViewController: AddEventViewController =…
YichenBman
  • 5,011
  • 8
  • 46
  • 65
29
votes
6 answers

viewDidLoad called before prepareForSegue finishes

I was under the impression that viewDidLoad will be called AFTER prepareForSegue finishes. This is even how Hegarty teaches his Stanford class (as recently as Feb 2013). However, for the first time today, I have noticed that viewDidLoad was called…
Michael Guren
  • 349
  • 1
  • 3
  • 6
28
votes
10 answers

prepareForSegue is not getting called when I click on a button without using performSegueWithIdentifier

Based on the Stanford iOS course I am playing with modal view controllers. In the demo they have a button that would launch a modal view and when it is clicked the function prepareForSegue is called. I mimicked the code and implementation into my…
Amro Younes
  • 1,261
  • 2
  • 16
  • 34
27
votes
5 answers

ios pass values during a segue to another view

Trying to do something I've seen documented in a lot of places, but can't seem to manage. I'm trying to pass data from one view to another during a segue. Here's the prepareForSegue method in the source view: - (void)…
james Burns
  • 864
  • 2
  • 9
  • 22
27
votes
6 answers

instantiateViewControllerWithIdentifier - Storyboard id set but still not working

I have to created a segue programmatically however when I click on the button the view controller does not change to the next, Storyboard ID is set and still not working. Am I missing any other checks in order to make this work? Please see code…
user2366782
27
votes
3 answers

Perform Segue Programmatically Without Button Connection?

I have two view controllers in my storyboard and I need to push from view 1 to view 2. I need to do this without connecting a segue directly from a button in my storyboard, I need to do it programatically. How can I? Thanks.
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
25
votes
6 answers

iOS 6 - can i return data when i unwind a segue?

I have created a simple unwind segue using the storyboard tools. I have created the following event handler in the view I want to unwind to: -(IBAction)quitQuiz:(UIStoryboardSegue *)segue { NSLog(@"SEGUE unwind"); } This fires correctly and…
Mark Tyers
  • 2,961
  • 4
  • 29
  • 52