prepareForSegue and PerformSegueWithIdentifier sender
<p>I am wondering about how the functions in the title work and also about the sender parameter. </p>

<p>Lets say a button click calls the performSegue method, does that also call the prepareSegue method as well? Is the prepareSegue method called before the performSegue method but after the button is pressed?</p>

<p>Also, is the "sender" parameter in both of the functions linked? If I pass in a string as the sender in the performSegue method, will that transfer over to the sender parameter in the prepareSegue method? In other words, if I set the sender parameter in the performSegue method as "Hi world", will the sender parameter in the prepareSegue method also be the same string? </p>

<p>Thanks</p>