Perform Segue programmatically and pass parameters to the destination view?

Up vote 2 down vote favorite share g+ share fb share tw.

In my app I've a button that performs a segue programmatically: - (void)myButtonMethod { //execute segue programmatically self performSegueWithIdentifier: @"MySegue" sender: self; } I would like to know if there is a way to reference the destination view and to pass it some parameters. I know that in prepareForSegue method, I can refer to it with:myDestinationViewController *vc = segue destinationViewController;, but I don't know how to this executing the segue programmatically. Do you have any ideas?

Thanks, yassa UPDATE: I'm sorry for this question! I simply discovered that, even if the segue is invoked programmatically, the prepareForSegue method is called anyway and so it is possible to pass parameters in the same usual way. Ios view parameters storyboard segue link|improve this question edited Feb 12 at 17:37 asked Feb 12 at 12:34yassassin1448 54% accept rate.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions