concept prepareForSegue:sender in category ios

appears as: prepareForSegue:sender
iOS 7 in Action

This is an excerpt from Manning's book iOS 7 in Action.

Segues also allow you to pass data to the next view controller before completing the transition. You do this by overriding the prepareForSegue:sender: method from the originating view controller, as shown here:

Listing 5.1. Passing a reference to the selected album using prepareForSegue:sender: