segue

Passing Firebase Data from tableview to ViewController

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:39:45
问题 I am having issues displaying the make and model of the selected cell in another view controller connected by a segue. The Cells display the Vin Number and I want the make and model info for that specific vin number passed to another ViewController. I have attempted to set up passing the values but can not get it to work. Can someone take a look and see if they can spot where I went wrong? Here is what my firebase database looks like: Vehicles: { 5UXKR0C34H0X82785: { VehicleInfo: { make:

xcode segue jump management in a app with many views

空扰寡人 提交于 2019-12-13 03:09:22
问题 I have seven views that I need to navigate between from any of the other views. I don't want to keep doing segues from each one as new instances would keep being created...among other issues. What I was originally trying to do was have all the segues start from a home view and then go to the designated target view. When the user left that target view a public variable would be set if they wanted to go to any other view other than the home view. When the home view reappeared, it would check

Pass Core Data Entity Attribute From ViewController A to B

空扰寡人 提交于 2019-12-13 03:01:20
问题 I have small problem with Core Data. I will skip the code because it's working fine. I just need to know what to do inside prepareForSeague method. App has 2 Views - ViewControllerA and TableViewControllerB. In TableViewControllerB I've set up table view with custom cell with cell identifier: customCell. I press button ADD and it shows Alert view with 2 rows. Alert View adds 2 Attributes to entity and these attributes are displayed in table cell. Entity is called SOMEentity while Attributes

How do I present a View Controller and dismiss all others?

别等时光非礼了梦想. 提交于 2019-12-13 02:45:47
问题 I have about 20 View Controllers, chained together with Modal and Push segues. Now, at the last View Controller I want to switch back again to the first View Controller, as if the user has restarted the app. Unfortunately when I do this with [UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"InitViewController"]]; [self presentViewController:viewController animated:YES completion:nil]; all of the previous view controllers are not unloaded. Not a

Loading view programmatically

◇◆丶佛笑我妖孽 提交于 2019-12-13 02:27:45
问题 I have three view controllers in my project. Let's call them view1, view2 and view3. View2 is loaded from View1 using segue from interface builder. But view3 needs to be loaded programmatically from view2 since view2 makes RESTful request to REST server and that request is asynchronous. I have a separate class to handle REST request. Once I get the return value from REST server, I invoke loadResultViewController method of view2. However I'm getting "libc++abi.dylib: terminating with uncaught

Having issue with UISplitViewController

喜欢而已 提交于 2019-12-13 02:09:14
问题 I have created a dictionary application and I am using UISplitViewController to search and select a word, my application crashes with this log : -[MeaningViewController topViewController]: unrecognized selector sent to instance 0x7f918945bef0 Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MeaningViewController topViewController]: unrecognized selector sent to instance 0x7f918945bef0' Here is my code : in ViewController (MasterView) : - (void)prepareForSegue

Passing Data in Swift Between View Controllers in Same File

非 Y 不嫁゛ 提交于 2019-12-13 02:06:56
问题 Why can't I pass data from one view controller class to another view controller class when they are in the same .swift file? I've done both of the tutorials linked bellow in an effort to understand passing data, and both have you make another .swift file for you second view controller. When I followed them exactly it works. When I do everything the same but just put the class SecondViewController in the same .swift file as the class FirstViewController it doesn't work. Why? I'm building an

Objective C Segues, dissolve programmatically

对着背影说爱祢 提交于 2019-12-13 00:27:47
问题 I have two classes, machineClass and buttonsClass... From buttons class, I want a button to programmatically push into the machineClass. Ive gotten that to work with: machineClass *mc = [self.storyboard instantiateViewControllerWithIdentifier:@"machineClass"]; mc.passedString = purchase; [self presentViewController:mc animated:YES completion:nil]; However , this uses the default segue animation (where the view comes up vertically), and I think my app would look so much nicer if I used the

How to pass data backwards to a view controller after passing forward?

ぐ巨炮叔叔 提交于 2019-12-12 23:46:51
问题 Im developing a quiz app and there is a second view controller that appears after the initial view controller where you are asked to answer a question. On the second view controller you the user must press a button to return to the initial view controller to be asked another question. However when I segue back from the second view controller I believe a new instance of the initial view controller is being created and the user is asked questions they have already answered. The code in the

Storyboard segue Show Transition vertical from bottom instead of horizontal

狂风中的少年 提交于 2019-12-12 22:14:11
问题 I've got a basic storyboard setup that segue transitions through some view controllers by clicking a button. I've also got a Navigation controller at the root of the storyboard, hoping this segue chain performs similarly to how a series of Pushes used to work. The functionality is all there, as is the navigation bar controlling, however the transitions all have the new views coming in from the bottom and sliding up, Cover Vertical. How do I configure this to slide in from the right side like