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

Swift - Segue away from modal view not destroying ViewController properly

I'm having trouble figuring out how to properly destroy ViewControllers. In my project, I have 3 view controllers. The first view controller segues to the second view controller. The second view controller segues modally to the third view. When the…
1
vote
0 answers

Using manuel segues with Swift Spritekit

(Swift) I have a problem with my app, I'm working on. It features a SpriteKit Scene and some transitions to different scenes. However, from the main menu of the app, I've created a segue to a new viewController via Story Board. My problem is, when…
theloneswiftman
  • 188
  • 1
  • 4
  • 17
1
vote
2 answers

How to perform actions based on segue

Here's what I'm trying to do: I have 2 views, Settings and Main Screen. I've coded a segue to occur when a button in Settings is pressed, taking the view to the Main Screen. The identifier is "reset". I'm trying to have the Main Screen perform a…
Alex
  • 141
  • 2
  • 10
1
vote
1 answer

fatal error: unexpectedly found nil while unwrapping an Optional value on performing segue

I am logging in using facebook SDK and everything is properly setup. When I authorize my app for first time, the segue gets performed to my next view controller. But when I logout and try to login again, the segue gives an error fatal error:…
1
vote
1 answer

Segue value nil in ViewDidLoad but has value in didSet

I am passing a Core Data entity to the next View Controller with a prepareForSegue like this: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if segue.identifier == "MemberDetails" { let storyboard =…
Emptyless
  • 2,964
  • 3
  • 20
  • 30
1
vote
3 answers

What is this storyboard segue method is this? push, modal, or popover?

I want to implement same thing like this: a controller popover at the center of screen. But I cannot find the proper way to present? Could you tell me which segue method is this? and how to achieve that?
Kevin Science
  • 303
  • 4
  • 18
1
vote
2 answers

tvOS: trigger a popover segue when a button is focused

I have a view controller that has a button Show Detail. I want to implement a segue to show detail as a popover presentation segue. I control dragged the button to link to the view controller that contains detail information. But the popover will…
1
vote
0 answers

Best way to programmatically pick initial view controller OS X Cocoa

I am trying to programmatically select an initial view controller for my Swift Cocoa application in Xcode. I am grabbing information from the terminal, and based on that information, I want to have the application choose between two different view…
1
vote
0 answers

Swift: Building a Menu in a CollectionView With CollectionViewCell Segue

I am building a menu using CollectionView and programmatically trying to attach 5 buttons. I can not figure out how to connect the buttons to segues. The buttons activate a container view which then switches content within that view. This is what…
1
vote
3 answers

Segue to ViewController from UITabBarController Scene and back "hides" UITabBar

So I have a problem with my app at the moment. So I have a UITabBarController that has 2 "pages". The first page, called AddExpense (its class is AddExpenseViewController), has a button that segues to a scene, called PicExpense (its class is…
Reagan McFarland
  • 295
  • 1
  • 10
1
vote
2 answers

segue via button in tableview performs 2 segues instead of one

I made a tableview controller, and added a button inside of the prototype cell. I then made a new swift file for this cell in which I dragged this button. Next, i made a new tableview file, and added the images which should be shown inside the…
user6393953
1
vote
2 answers

Set up custom segue way in Swift (top to button direction)

I want to build a segue between two scenes in storyboard that behaves exactly the same to the "Apple Keynote" effect move in (top to bottom direction). Now I know there's a segue called modally segue, but that works in bottom to top…
Tom Xue
  • 470
  • 1
  • 7
  • 18
1
vote
1 answer

Triggering push segue from long press on map view

My app is supposed to allow users to view a list of places (as annotations) on a map view and add their own custom places. It uses three view controllers with a navigation controller- a tableview for the list of places, a basic view controller with…
1
vote
1 answer

CloudKit - Fetching 5 records with one field type... takes 3-4 seconds. why is it so slow?

I have a recordtype - "DiningTypes". "DiningTypes only has one field type, which is a string. I have 5 records... and it takes 3-4 second to load a table. How is that this is so slow? Do I need to begin the fetching process in a previous…
Jon Gi
  • 39
  • 1
  • 8
1
vote
1 answer

Swift back button with segue show not showing

So I tried everything with showing up the back button but it just won't work This is how i arrange my View Controllers Used segue show from view controller to site view controller And here is the site view controller that isn't showing back…