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

How To addSubViews To Storyboard, Then Displaying It Using A Segue

I have a view controller reference to a storyboard of a given identifier. I'm adding a bunch of buttons to it, then trying to display it via a segue. My problem is that when the segue fires, it creates a difference instance of the view controller…
Mark Löwe
  • 572
  • 1
  • 10
  • 24
1
vote
2 answers

iOS Segue not working as expected when passing value

I have a button with the following code: @IBAction func buttonPress(sender: AnyObject) { performSegueWithIdentifier("newAccount", sender: sender) } When the button is pressed it performs a segue. I want to pass a value to the new view…
user1822824
  • 2,478
  • 6
  • 41
  • 65
1
vote
2 answers

Memory usage increases with every segue to modal vc

I have two view controllers, one is the timeline the second one is for the creation. In that second view controller I have a sub view. This sub view is an SKView. Now every time I segue to it, it increases the memory usage by 2mb (on a real device),…
telip007
  • 27
  • 7
1
vote
1 answer

Perform segue with UIAlertAction

I would like to have the "Next" button perform segue to move to "PersonalInformation" (a UIViewController) But I get a "signal SIGABRT" with the code.. How can I fix it? let alert = UIAlertController(title:"Confirmation", message:…
chiefpika
  • 427
  • 1
  • 4
  • 13
1
vote
2 answers

How to run a function every n number of segues?

Does anyone have decent code to run a function every n number of times a segue takes place? E.g. load an ad every time a user navigates 10 segues in my app. At the moment I am doing something similar like so in my segue: let chanceOfAd =…
Chris Wright
  • 89
  • 2
  • 8
1
vote
0 answers

Swift memory leak in navigation controller

I followed this tutorial to create an app that displays multiple views, however I discovered that I have a memory leak. http://www.huffingtonpost.com/dulio-denis/ios-quick-read-implementi_4_b_6923788.html It seems that every time I open the child…
TomSawyer
  • 3,711
  • 6
  • 44
  • 79
1
vote
2 answers

ViewController not release when come back from segue

I am using swift to perform segue programatically. First, I created a segue between two controllers in storyboard. Below is the code to show a view controller: self.performSegueWithIdentifier("EditImage", sender: imageSampleBuffer) When executing…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
1
vote
2 answers

How do I pass data via segue after geocodeAddressString

I'm trying to get the coordinates of an address passed from one view controller to another via a segue. The geocoding function to get the coordinates runs asynchronously, so I'm using a completion block to capture the coordinate values. EDIT: The…
Wertever
  • 45
  • 5
1
vote
2 answers

UIImageView not segueing

I have a UIImageView (0x0) in my NewsTableViewController.swift which segues to NewsDetailTableViewController.swift where the UIImageView is 600x216. If you ask why the first UIImageView is 0x0, it is because it is the only way that I know how to…
Annabelle Sykes
  • 263
  • 6
  • 17
1
vote
1 answer

Pass data from custom segue

I've created a custom segue and I'm wondering where to put the func prepareForSegue for it to execute. class CustomSegue: UIStoryboardSegue { var a = 0 var b = 0 override func perform() { func prepareForSegue(segue: UIStoryboardSegue, sender:…
R.S
  • 253
  • 2
  • 7
1
vote
2 answers

How can I use my action and programmatically transition to a view controller as defined in the storyboard?

I have a sent Action, as follows: @IBAction func showSettings(sender: AnyObject) { let settingsPicker = SettingsViewController() settingsPicker.setDelegate(self) let navigationController = UINavigationController…
dasPing
  • 337
  • 1
  • 2
  • 19
1
vote
2 answers

push is not working on the controller which was presented modally

Hello I have a button on FirstViewController and I dragged a segue from firstViewController to secondViewController as segue Modally. Now on the secondViewController I am generating a Button Programmatically and to go on the third controller I am…
hellosheikh
  • 2,929
  • 8
  • 49
  • 115
1
vote
1 answer

iOS Swift Unwind segue from Detail to Master to fire up segue to Detail2 not working in order

I did extensive googling on the matter, perhaps I am unable to find the right keywords, so no luck identifying a solution. Perhaps someone here may help. I have 3 Viewcontrollers - Master, Detail and TaskEditViewController. I am posting local…
ddikov
  • 43
  • 6
1
vote
1 answer

Moving Data Using Protocol delegates in Navigation controller

I am working on a app where i need to pass data throw a Navigation controller and back. I got this to work using this tutorial: link In my app i have from my first view controller(in tutorial uiviewcontroller) beside the push segue to…
Cing
  • 806
  • 1
  • 11
  • 29
1
vote
2 answers

Segue from tableview to view preceded by navigation controller

In my project I have a Slide Menu with 3 options in a TableView. Depending of the selected option I want to segue to the ViewController1,ViewController2 or ViewController3 all them preceded by a navigation controller. Currently I'm using a segue in…
Victor Rius
  • 4,566
  • 1
  • 20
  • 28