Most sessions are automatically initiated as a result of user interaction. For example, if you have a segue that translates from one button to the scene in the storyboard, when you click the button, the segue starts automatically.
Sometimes it makes sense to run a segue program call β for example, you have a high-performance scene that displays when a user wins a game round. It is impossible to express the concept of winning in the storyboard itself, so instead you can create a segue, assign it an identifier and call -performSegueWithIdentifier:sender: at run time.
Another segue-related method in the UIViewController, -prepareForSegue:sender: is a method that you must override to perform any configuration on the destination view controller.
retainCount Feb 07 '12 at 17:27 2012-02-07 17:27
source share