Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Modal Segue #61

Open
acfriedman opened this issue May 20, 2015 · 1 comment
Open

Issue with Modal Segue #61

acfriedman opened this issue May 20, 2015 · 1 comment

Comments

@acfriedman
Copy link

I'm trying to create a modal segue. I have the surrogate subclassed with the correct run-time attributes.

I call:

[self performSegueWithIdentifier:@"toActionVC" sender:nil];

Any ideas why I am getting this error?

[SAActionMenuViewController scene]: unrecognized selector sent to instance 0x177e17d0
  2015-05-19 22:35:12.073 Beta[1930:643484] *** Terminating app due to uncaught  exception 'NSInvalidArgumentException', reason: '-[SAActionMenuViewController scene]: unrecognized      selector sent to instance 0x177e17d0'

SAActionMenuViewController is my 'SecondaryStoryboard'.

I'm also trying to pass data like so

  else if ([segue.identifier isEqualToString:@"toActionVC"])
    {
        RBStoryboardLink *link = (RBStoryboardLink *)segue.destinationViewController;
        SAActionMenuViewController *actionVC = (SAActionMenuViewController *)link.scene;
       actionVC.labelText = sender;
     }
@acfriedman
Copy link
Author

So apparently the problem is with how I am attempting to pass the data?
This line is no good.

 SAActionMenuViewController *actionVC = (SAActionMenuViewController *)link.scene;

What is the correct way to pass data to the receiving storyboard vc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant