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
70
votes
1 answer

IOS7, Segue and storyboards - How to create without a button?

I currently have a login View and an Application view, I have successfully implemented validation on the login view and I need to programmatically shift to the application view on successful validation. I understand I can add a segue to the login…
LiamB
  • 18,243
  • 19
  • 75
  • 116
67
votes
10 answers

How to make a push segue when a UITableViewCell is selected

I have a list of effects in a table view. I have created a top right bar button which does a push segue to another view controller which helps create a new effect. Now I want to add push segues to the table view cells so that the effects values…
Aviral Bajpai
  • 759
  • 1
  • 6
  • 11
52
votes
11 answers

NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController

so I'm making an app with 5 view controllers, the first is embedded in a UINavigationController and the segue between the first 4 view controllers works fine. However introducing a 5th View Controller has broken this, and I'm getting the…
DouglasBoone
  • 523
  • 1
  • 4
  • 4
51
votes
7 answers

ContainerView with multiple embed segues

Is there a way to have a single ContainerView with multiple embed segues? The aim is for a ContainerView to hold a few different ViewControllers depending on what buttons have been pressed; only one is going to be visible at a time. I want to use…
Steve Haley
  • 55,374
  • 17
  • 77
  • 85
50
votes
4 answers

Understanding performSegueWithIdentifier

Can someone more knowledgeable than I explain performSegueWithIdentifier:sender: for me? I need to switch views (and classes) and also carry a few NSStrings and IDs over to that view's class. I was wondering if this is possible with…
Simon Barkhuizen
  • 846
  • 1
  • 9
  • 18
49
votes
4 answers

IOS StoryBoard multiple Segue's from a TableCell

Hi I have a storyboard and am able to show a detail view when clicking on a table cell. I want to add extra functionality so that depending on what cell I click I show a different view controller. I tried dragging two segues from the same cell but…
Bear
  • 1,541
  • 3
  • 20
  • 32
48
votes
8 answers

performSegueWithIdentifier very slow when segue is modal

I have a simple table view where I handle the select action on the table view. This action follows a segue. If the segue is a push segue, the next view shows immediately. If the segue is a modal segue, the next view either: takes 6 seconds or so to…
tng
  • 4,286
  • 5
  • 21
  • 30
47
votes
5 answers

Calling performSeguewithIdentifier doesn't call shouldperformseguewithIdentifier

I have two view controllers. On view controller1 I have the following: a segue that takes me to viewcontroller2 - this segue is named "showme" and is attached to the viewcontroller an IBAction for a UIButton In my code I have the following for…
es3dev
  • 471
  • 1
  • 4
  • 4
46
votes
4 answers

How to segue back to a UIViewController that's already loaded?

I have a view on a storyboard the has a button to perform a certain action. To perform this action though, the user must be logged in. The button handler tests if the user is logged in and performs one segue if YES and another if NO. The NO segues…
TijuanaKez
  • 1,472
  • 3
  • 20
  • 28
45
votes
12 answers

iOS Segue - Left to Right -

I've read the other posts on segues but none solve my question. Simply put, my ViewControllers are ordered, like a book. I want backward transitions (example: from page 9 to 8) to always present (slide over) from left to right. I want forward…
Dave G
  • 12,042
  • 7
  • 57
  • 83
41
votes
1 answer

Passing data with segue through navigationController

I'm trying to push data from one viewController to another. I've connected a viewController to another ViewController's navigationController and then set the identifier to "showItemSegue". I get an error in these two lines: var detailController =…
Peter Pik
  • 11,023
  • 19
  • 84
  • 142
39
votes
3 answers

To stop segue and show alert

Using iOS 5 storyboards, on a button I am performing a segue, what I want is to do validation on my textfield and if validation is failed I have to stop segue and throw an alert. Whats the way to do it?
Firdous
  • 4,624
  • 13
  • 41
  • 80
37
votes
5 answers

Sending data with Segue with Swift

I have two view controllers and two views. In my first view, I set the variable 'currentUser' to false. I need to be able to set 'currentUser' to true in the second view controller. When trying to reference 'currentUser' from the second view it's…
Alex Catchpole
  • 7,156
  • 6
  • 20
  • 29
36
votes
3 answers

Passing data with unwind segue

I created two view controllers. I created a segue from the first to the second to pass data. Now I want to pass data from the second view controller to the first one. I went through many similar questions and I'm not able to implement those as I…
ebby94
  • 3,131
  • 2
  • 23
  • 31
34
votes
4 answers

Setting a property in a segue with Navigation Controller containing another view

I'm getting a crash when trying to set a property in my segue. It's a UIView passing a property to a Navigation Controller that has a TableView as it's root view. It's supposed to go to my TableViewController, but it looks like it is getting…
user2529626