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

prepareForSegue is never called in UICollectionView

Good afternoon, I'm trying to perform a segue from my CollectionView but the prepareForSegue is never triggered when touching a Cell. This is working for my TableView but it's not for my CollectionView. As you can see in my code, I have both in the…
Jordi Gámez
  • 3,400
  • 3
  • 22
  • 35
1
vote
1 answer

Problems with initiating segue in swift

I am having some issues getting a segue to work properly. Everything else is working, like saving the username and password to parse. But when the user presses either sign up or log in the segue doesn't work. Here is my code: import UIKit import…
user6155249
  • 129
  • 2
  • 12
1
vote
0 answers

iOS: performSegueWithIdentifier weird behavior

This is totally weird behavior! I just have two view controllers, say, V1, V2. I'm trying to push V2 from V1 using performSegueWithIdentifier and it throws this error Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:…
Srujan Simha
  • 3,637
  • 8
  • 42
  • 59
1
vote
0 answers

Perform animation while performing segue

From my initial View Controller, I want to be able to segue to another view controller. This second view controller, however, takes a few seconds to load, and I want to have my source view controller display an animation while it loads. Performing…
Lahav
  • 781
  • 10
  • 22
1
vote
1 answer

Variable nil when trying to pass variable to view controller with segue

Here is the code I currently have: var valueToPass:String! func tableView(tableView: UITableView!, didSelectRowAtIndexPath indexPath: NSIndexPath!) { let indexPath = tableView.indexPathForSelectedRow(); let currentCell =…
johnniexo88
  • 313
  • 5
  • 17
1
vote
1 answer

Perform Segue from Button in TableViewCell

I have a CustomCell class that has a button. I am using a prototype cell (not a .xib). I would like to have the button in a tableviewcell perform a segue and pass a value to a new class. How do I create a unique action for a button in a…
Josh D.
  • 151
  • 1
  • 11
1
vote
1 answer

Interstitial between SplashScreen and HomePage (Segue not working, blackscreen)

I know this is a frequently asked question, but I didn't find my answer after reading all the similar questions. So here is my issue, I am integrating Ads in my application, and basically what I'm trying to achieve is to show an Interstitial during…
Funnybear
  • 71
  • 11
1
vote
0 answers

Unwind Segue [swift]

I calling the login segue to another view controller (login view) like this , I have to set it my login view as front view controller when prepareForSegue or else i dont know why my side menu will be keep stick in the front view, which my login…
minimomo
  • 581
  • 1
  • 6
  • 16
1
vote
1 answer

Swift / XCode - AdMob interstitial during dismissViewController

I have a simple app that requires some help in getting Interstitials firing properly. The app is just two views. MainVC and ModalVC. On ModalVC, there's a [CLOSE] button that returns the user back to MainVC: @IBAction func…
Joe
  • 3,772
  • 3
  • 33
  • 64
1
vote
0 answers

Xcode- segue works, then back button crashes app

I have a TopicsViewController which displays UIButtons labeled by popular research topics for students. TopicsViewController: TopicsViewController.m has a prepareForSegue method successfully passing data to my StatsViewController, which displays…
1
vote
1 answer

Change segue endpoint using Storyboard

How do you change the endpoint of an existing segue using storyboard? Obviously I can delete and re-create the segue but this adds a potential for "operator error". Eg if I accidentally mistype the segue's identifier, the code will later…
HughHughTeotl
  • 5,439
  • 3
  • 34
  • 49
1
vote
1 answer

Segue to UITableViewController covers navigation bar

I have a segue from a UIViewController to a UITableViewController that comes into the scene from the bottom of the screen. However, it goes too far and covers the navigation bar. My view hierarchy is: Navigation Controller (initial view controller)…
1
vote
1 answer

Passing data from the second view into the first view controller

I want to know how do you pass data, like values, from a second view controller into the first view controller. I did a simple segue from the first to the second. I just don't know how to do it backwards. I have a view on my first controller, and a…
Nyxx
  • 303
  • 3
  • 13
1
vote
3 answers

performSegueWithIdentifier - Cannot convert value of type 'AnyObject' to argument type 'AnyObject?'

I am trying to pass some string data to a viewcontroller using performSegueWithIdentifier, but I get this error Cannot convert value of type 'AnyObject?'. Type(Aka'Optional.Type) to expected argument type 'AnyObject?' Even if I use…
bibscy
  • 2,598
  • 4
  • 34
  • 82
1
vote
1 answer

iOS loading external data with JSON -- Segue crashing with error: [__NSCFNumber length]: unrecognized selector sent to instance

I am new to programming in general and especially iOS. Also, this is my first time asking on StackOverflow. I hope I don't start by pasting the code incorrectly. In my application, I need to load and show some JSON into an application. I managed to…