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

performSegueWithIdentifier delay only for the first time

I'm having this weird situation over my app. I'm calling performSegueWithIdentifier over the main thread : dispatch_async(dispatch_get_main_queue()){ self.performSegueWithIdentifier("toFrame", sender: nil) } I've set breakpoints thru the…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
1
vote
2 answers

I segue from two viewControllers to one viewController. How to unwind segue to the caller?

Screenshot above is 2 segue; from (view1 or view2) to view3 When creating the unwind segue, how do I get it to call the right @IBAction method? // code in view1.swift @IBAction func backview1(segue: UIStoryboardSegue) { } // code…
WoderMan
  • 53
  • 1
  • 12
1
vote
4 answers

Pass Struct through PrepareForSegue with Swift

I am new to the iPhone coding and I am trying to pass a struct to my second VC through PrepareForSegue. In my main view controller I have below struct struct AccountStruct { var account: String var balance: Double var…
plv_2002
  • 28
  • 4
1
vote
1 answer

C# Xamarin - Popover segue causes anonymous build error

Firstly, it may be helpful for you to have the relevant environment details to rule out environmental factors: Dev PC Environment _______________________ Windows 10 Enterprise 64 Bit Intel Core i7 3.40GHz 16GB RAM Visual Studio Professional 2015…
o-o-awake-o-o
  • 397
  • 1
  • 3
  • 18
1
vote
0 answers

{Swift} Segue is changing a variable to a different number

I'm currently making an app for fun that takes the price you want and shows you a list of PC parts that you can buy in your budget. I have a UI Slider in a View Controller that sets the price and then that price is segued to a Table View Controller;…
1
vote
0 answers

Segue not being called

I am trying to bypass a sign-in view if the user has already signed in once. I have run tests and know I'm getting to the right code. But the segue is never executed. //bypass the sign in screen if user has already signed in let signInCheck…
Tom
  • 11
  • 1
1
vote
1 answer

Segue from UITableView to UITabBarController

I am creating an app that allows the user to see a random quote everyday. In this app, the user is asked 3 questions before being able to actually use the app. The last question is a simple "What is your favorite category/topic". With this prompt,…
DrPepperGrad
  • 361
  • 1
  • 4
  • 17
1
vote
1 answer

Passing multiple data between view controllers

EDITED I have been having some issue with passing multiple label.text to another viewController in swift. I can pass one label between the two controllers fine, but I can not make it work to pass multiple. Usually when I try and pass multiple labels…
Icculus
  • 43
  • 11
1
vote
2 answers

Segue won't perform when activated without a button xcode Swift 2

I'm trying to make an IOS application and checking whether the user has logged in or not. When a user is not logged in, it should display a login form. Ive created multiple View Controllers and connected them with segue's. Than I used…
Lenny
  • 350
  • 1
  • 13
1
vote
1 answer

Segue as a new view

I have a navigation controller as a root view to the home view then a sign in view then the main view. When I sign in and segue to the main view using vc.performSegueWithIdentifier("toMenuView", sender: nil) I can slide back to the sign in view. I…
1
vote
2 answers

viewDidLoad() Getting Called Before prepareForSegue() Finishes: Swift

I am have a ContainerVC which holds a variable controllerToLoad. By Default it is "MainVC" however when clicking on a menu item, I wish to present the ContainerVCbut instead of loading MainVC, I wish to load SecondVC. I load the MainVC in the…
Bhavik P.
  • 905
  • 3
  • 10
  • 28
1
vote
1 answer

Realm Exception - updates on Realm objects, persisted or not

I am using Realm in my app. I want to use the same viewController for update / insert a meal object. Here is DayOverviewController, which displays meals that user had on a specific date. This DayOverviewController segues to…
Laura Calinoiu
  • 704
  • 1
  • 8
  • 24
1
vote
0 answers

How to avoid Presenting view controllers on detached view controllers

I have 4 storyboards : Intro (Root), Loading, ChooseHouse, Home If user logged i set Loading as root for loading data of that user like that on my didFinishLaunchingWithOptions method : func application(application: UIApplication,…
YouSS
  • 560
  • 7
  • 20
1
vote
0 answers

Apple watch page indicator delayed

I've successfully implemented "next page" relationship between interface controllers on apple watch. I've encountered a problem while changing the pages. The page indicator switches with a delay of about 0,5-1s after the second interface controller…
izik461
  • 1,131
  • 12
  • 32
1
vote
2 answers

Presenting view controller smaller than screen size

I tried to ask this a few days ago but found it hard to explain myself clearly so have opened this simpler question instead. I have a View Controller A. I tap something to trigger a segue to View Controller B. Is there any way of presenting B in a…
RobertyBob
  • 803
  • 1
  • 8
  • 20