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

Sending indexPath.row from didselectRowAtIndexPath to prepareForSegue via sender

I have seen many solutions however i cant get this right. I want to call prepareForSegue from the didSelectRowAtIndexPath function when a cell is tapped. Then i want to retrieve the row index that was tapped on, from inside the prepareForSegue…
rohaldb
  • 589
  • 7
  • 24
1
vote
1 answer

using my ViewController as a TabBarController

So i currently have a ViewController that has a tableView in it with a tab bar on the bottom. Its basically an instagram clone. However, i built all the tableView functionality and am now just getting around to playing with the tab bar items to…
ryan
  • 187
  • 1
  • 1
  • 15
1
vote
2 answers

unwind two segues from back button in swift

I have a parent view controller where a user selects the game they want to play, then a child 1 view controller where the game is played, then a child 2 view controller which shows scores once the game is completed. How do I use the standard back…
richc
  • 1,648
  • 5
  • 20
  • 48
1
vote
1 answer

Segue all the data of a TableView to a CollectionView swift parse

In order to limit the number of query to my database and consumption of data and battery, I would like to segue all the data of my TableView to my CollectionView. import UIKit import ParseUI import Parse class ListControllerView:…
L.Vl
  • 113
  • 2
  • 14
1
vote
1 answer

xcode - prepareForSegue with multiple identifiers

I have a tableView (not static cells) with two sections A bar section and a club section( and each has several cells). I want that every cell from the same section goes to the same viewcontroller. I can only acces the first one, never the last…
1
vote
1 answer

Delay in performing segue iOS

I have used AMSideMenu in my project and performing segue(from navigation bar button and UIButton) to another view controller from home screen is very slow. Any idea why is it so? I have used the following code in Appdelegate.m UIStoryboard…
1
vote
4 answers

How to stop UITableView from returning to top cell after popover

I have a tableView full of images. When a user taps on an image (within the cell), a viewController with a larger zoomable version of the image is called with a popover segue. When i dismiss the popover and return to my tableView, it automatically…
rohaldb
  • 589
  • 7
  • 24
1
vote
1 answer

View not shown upon performSegueWithIdentifier

So I have this splitview. On the left hand side you have the tableView. It has this plus sign. When I tap it I create a new managedObject Woman. I set a stored variable property on detailVC called woman. Then I segue from detailVC to editVC changing…
1
vote
1 answer

NSAttributedString - textview not showing attributed text after segue

I have a problem with segues or my textview. There are two view controllers: ViewController and TextViewController. Both view controllers are showing a UITextView and a button. I've created a segue called "textSegue" when I press the "Text" button…
etimm
  • 121
  • 3
  • 13
1
vote
1 answer

Send array by segue to new view controller swift iOS 9

I am attempting to send an array of data to a new view controller and I'm currently getting the error fatal error: unexpectedly found nil while unwrapping an Optional value Im using the API data from…
Zach
  • 119
  • 3
  • 17
1
vote
0 answers

Segues from a PopupView

I am facing a problem I cannot solve alone. At least, I don't know what's the right way to program this. I am writing an app which will open a PopupView as a Subview of my main menu when pressing + . This looks like this: As soon as this subview is…
MkaysWork
  • 625
  • 1
  • 7
  • 11
1
vote
1 answer

Segue after Facebook login on tvOS fails

This is the error when trying to segue to a new view controller after successfully logging in with Facebook's new tvOS SDK: Warning: Attempt to present Reconnect.LoadingViewController on FBSDKDeviceLoginViewController whose view is not in the window…
Marco Chiang
  • 159
  • 1
  • 4
  • 15
1
vote
2 answers

Pass data between two classes in two files

I have two swift files. one file has a variable with some data. I need to use data in that variable from another class. Class A class HVListConnectionsRequest: HVRequest { var connections = [HVConnection]() //Some code } Class B class…
Dimuth
  • 713
  • 2
  • 11
  • 34
1
vote
0 answers

Why is tab bar not displayed correctly after being pushed animatedly from another view?

I am pushing a tab bar controller into using a standard animated push segue on iOS 8, but here is what happens: See the tab bar, it's cut halfway. If I invalidate layout using setNeedsLayout, layoutSubviews etc nothing works (I've even tried…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
1
vote
1 answer

Segue from TableViewCell NIB to ViewController - Pls have a look

After hours if trying to solve this error i decided to reach out for help. I Keep on getting the same error : "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSCFConstantString…
1 2 3
99
100