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

crash on Unwind Segue after orientation change

I have an unwind segue which works fine in landscape or portrait on iOS 9.3, but throws the following exception if I rotate the device between presenting the target view controller (A) and the view controller performing the unwind (C). Any ideas why…
Joseph
  • 1,354
  • 12
  • 15
1
vote
1 answer

iOS - unexpected rotation back to portrait on segue

first time posting, so forgive me if I'm not giving the right info in my question... I'm creating an app (in swift), and I want to support all screen orientations for all screens (and have set in Xcode general tab accordingly). There's a login /…
deej_jinks
  • 11
  • 3
1
vote
0 answers

Modal segue takes much time on first run

I noticed that for some weird reason modal segue takes few seconds to perform when triggered in first place. Next time i perform a segue everything is ok. I'm struggling with this issues for a couple of days and this is what i have discovered so…
bitemybyte
  • 971
  • 1
  • 10
  • 24
1
vote
1 answer

How to create segue using multiple buttons to a webView

I have two viewcontroller. I am trying to load multiple url in one webview using buttons. My first viewcontroller contains buttons and second viewcontroller contains a uiwebview. I have connected two buttons to the webview by…
tuhin
  • 11
  • 5
1
vote
1 answer

How to detect which sequence is in page segue for WatchKit?

I'm trying to implement a page-based navigation app using the "Next Page Relationship Segue" described in this tutorial. In the app, both calendar views show the same type of content. The first one contains today's activities, and swiping presents…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
1
vote
1 answer

questions about segue to a viewcontroller

From the iphone system APP “Contacts”, in the “All Contacts” GUI and click “Add”, it will segue to “New Contact” GUI. Then from the “New Contact” GUI and add “new” item then click “Done”, it will seuge to the contact detail GUI(screenshot image 3).…
1
vote
1 answer

Is it possible to have 2 segues attached to the UITableViewCell that point at two different UIViewControllers?

Currently I have a UITableViewCell and I attached a segue of type show there - when user clicks the cell this method gets invoked: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier ==…
user3766930
  • 5,629
  • 10
  • 51
  • 104
1
vote
1 answer

How can I perform a segue from single view controller to split view controller? Swift

I want user to login before going to split view controller. I tried to create a push segue then call the performSegueWithIdentifier. An error comes out. It says "Terminating app due to uncaught exception 'NSGenericException', reason: 'Could not find…
Pak Ho Cheung
  • 1,382
  • 6
  • 22
  • 52
1
vote
1 answer

iOS segue identifier is empty string in prepare for segue

I have a segue with identifier. When I press the button in function shouldPerformSegueWithIdentifier I get an empty identifier What can cause such problem? What did I set up wrong? Here is my code: override func…
korgx9
  • 1,234
  • 22
  • 30
1
vote
2 answers

How to detect view controller dismissed or not

In iOS app, there may be several view controllers. They may perform segues from one to another. the question is how to detect each view controller about whether it is dismissed or not when implementing segue. Thanks.
James Rao
  • 168
  • 2
  • 13
1
vote
1 answer

How to create segue in Objective c programmatically?

Now I use wizard to create a segue, but I want it to be Objective C code. Below is my picture of my segue that I want it to be code. Help me please because It is really helpful to me. enter image description here
Pheng Sengvuthy
  • 260
  • 2
  • 9
1
vote
2 answers

xcode: action segue only has Push, Modal and Custom

Why my action segue of storyboard only Push, Modal and Custom(Picture1). Picture1: https://i.stack.imgur.com/SWnqi.png I want the action segue to display show, show detail... How to display the show, show detail on the action segue? Thank you Why I…
ShingHung
  • 337
  • 1
  • 5
  • 14
1
vote
1 answer

How to not show intermediate screen and call viewWillAppear when we are dismissing two view controllers back

Let's say I have 3 UIViewControllers: A, B, C. A is presenting B modally and B is presenting C modally. I have exit segue from C to A and everything works fine, but while dismissing controller B is flashing and it's viewWillAppear is called. Is it…
Nikita Arkhipov
  • 1,208
  • 4
  • 11
  • 28
1
vote
1 answer

Segue found in XML but not found in code

Hi I have a question about segue, I have checked many post up here, and pretty sure i have setup the segue properly. And here's my storyboard XML, There's two scenes, SplashScreen and ViewController. Splash Screen has a segue called "startSegue" as…
Kit Man
  • 53
  • 8
1
vote
1 answer

Segue Error in detail view controller

I have created the model class and with some static images and text I have populated the UICollectionView, but when the user touches the cell it shows an error in view controller 2 when I print or show it on a label. Below is the code. Any…
kk002able
  • 63
  • 9