It's just interesting to know about the sender object.
I know that you can access it in the prepareForSegue... method, but is it available at all in the next destinationViewController ?
i.e. in viewDidLoad could I access the segueSender object or something else?
I never saw this in the documentation, I just thought it might be useful.
EDIT FOR CLARITY
I am not asking how to execute segue or find segue or something like this.
Let's say I have two view controllers (VCA and VCB).
There is an indent from VCA to VCB with the identifier "segue".
In VCA, I run ...
[self performSegueWithIdentifier:@"segue" sender:@"Hello world"];
My question: Can I get access to the string @ "Hello world" from the VCB, or whether it is only available in prepareForSegue... method in VCA?
i.e. can i access the segue sender object from the target controller?
source share