uistoryboardsegue

NSInvalidArgumentException reason Receiver has no segue with identifier

空扰寡人 提交于 2019-12-20 18:14:12
问题 I have problem I've been sitting with. I have a UIViewController List and a UIViewController Login . On Login I have a button "Done", also another hidden button on the same UIViewController that has a segue to List (Type: push). I gave it an identifier in the interface builder of xcode named "LoginToList". Now from another class (a class that runs while Login is the active controller) I call: [[Login sharedLogin] performSegueWithIdentifier:@"LoginToList"]; The Login class clearly has a segue

Unwind Segue for UINavigationController

限于喜欢 提交于 2019-12-20 14:05:23
问题 I have a simple UINavigationController which pushes a UIViewController onto the stack via a custom segue. I then implemented an IBAction on the first UIViewController to perform an unwind action and I implement segueForUnwindingToViewController. Unfortunately, the segueForUnwindingToViewController is not being called (I did confirm that canPerformUnwindSegue is being called on the first VC). I have not seen any simple examples of this behavior. Can anyone please help? Thanks. Here's the code

NSGenericException: This coder requires that replaced objects be returned from initWithCoder

喜欢而已 提交于 2019-12-20 04:29:33
问题 I was running my iPhone app just fine yesterday. Today I'm getting this crash: *** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:' It happens when going from one view to another with storyboard segue (also tried it programmatically). The destination view controller is a UITableViewController with nothing strange. I've rolled back my code to check if anything changed that causes this crash but

pass data to view controller using storyboard segue iOS

a 夏天 提交于 2019-12-20 01:40:05
问题 I know there are lots of postings about this but I have tried everything and nothing has worked. So I have tried to pass an object between two view controllers, to a DBKIngredientsViewController embedded in a navigation item. I have a push segue with the identifier "showIngredientsSegue" to the DBKIngredientsViewController. The error message I receive is: 'NSInvalidArgumentException', reason: '-[DBKIngredientsViewController topViewController]: unrecognized selector sent to instance 0x8a92450'

Storyboard UINavigation Controller Back Button Text

梦想的初衷 提交于 2019-12-19 04:02:12
问题 In XCode 4.5.1 creating a storyboard app with a Navigation controller, I am having a hard time trying to set the BACK button for any view controllers that are pushed. I'm using segue's and the view controller shows as expected. However I want to change the name of the navigation bar and back button dynamically and placed this in my ViewWillAppear: self.title = @"Select Songs"; [self.backButton setTitle:@"Add"]; changes the title of the navigation bar but the back button still displays the

'Receiver has no segue with identifier' when identifier exists

做~自己de王妃 提交于 2019-12-18 17:29:44
问题 For an iOS app, I have a story board and multiple controllers, and a segue going from controller GameClass to controller SettingsClass . The segue, in view Controller GameClass has an identifier called GameToSettings : However, when I want to call the segue from my GameClass : [self performSegueWithIdentifier: @"GameToSettings" sender: self]; I get the error message *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<GameClass: 0xcf0c550>) has no

Make button it UIAlertView perform Segue

谁说我不能喝 提交于 2019-12-18 13:17:02
问题 I have created a UIAlertView for an action which gives me 2 options. I want the user to be able to click on a button and have it perform a Segue. Here's the code I have so far: - (IBAction)switchView:(id)sender { UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"Please Note" message:@"Hello this is my message" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Option 1", @"Option 2", nil]; [myAlert show]; } - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:

iOS segue freeze for many seconds before showing new view

会有一股神秘感。 提交于 2019-12-18 12:26:14
问题 In the main view of my app I have a table view and two prototype cells. I have configured the segues for each cell using the storyboard. In the view controller I override prepareForSegue to pass information on the selected cell to the destination view. The destination view isn't particularly complex and certainly doesn't require any heavy processing to load. THE PROBLEM When I tap on a cell in the main controller for the very first time, the destination view appears after a long delay, from 5

Getting reference to the view of a container view

心不动则不痛 提交于 2019-12-18 11:53:41
问题 I am new to iOS App Development. I have connected a tableview controller such that when I select one of the rows I get another UIViewController using didSelectRowAtIndexPath. I have a container view inside this UIViewController which displays (say for the time being) index of the row on which didSelectRowAtIndexPath was called. I want to do this using a segue, but the problem is I don't know how to get a reference to the view controller which is formed by using the container view. I know you

How to get the indexpath of a custom table view cell when an UIImage inside of it is tapped and captured by UITapGestureRecognizer in prepareForSegue

☆樱花仙子☆ 提交于 2019-12-18 09:44:33
问题 Ok a lot of variables in the title, sorry I couldn't make it any more simpler. First, I have a custom table cell with descriptions like so now, when a user taps on the cell itself, it would go to View A, however, there is a UITapGestureRecognizer that is connected to the UIImage at the left, which is connected to a segue that goes to View B. All is fine, but I need some data that is inside the table view cell that I can pass to View B so it can do some stuff once the view is shown. override