Before we touched the segue, this is the most basic way of delivery in iOS, today to explain how to reverse the segue.
The use of a reverse transition is premised on the need for a transition to be made by MVC, either directly or indirectly, from the target MVC. The reverse transition is the only way to not create a new MVC transition, which has the following two scenarios:
1 is ideal for jumping in the Navigationcontroller stack.
2 Turn off an MVC generated using modal segue.
Unlike other segue, there is no need to drag and drop the line, drag and drop the button that needs to click the reverse transition control to the front door shape at the top of the scene, in which we can choose the method we wrote in the target MVC to reverse the transition, which is similar to a normal ibaction, However, its parameters are uistoryboardsegue, so that the method can be found in the options when connecting to the button on the small door. Use the following:
Of course, unwind segue also has prepare method:
When prepare completes, it calls the action method in other MVC, which jumps to the other MVC, and the current MVC is destroyed.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
"We all love Paul Hearty" Stanford IOS8 public class personal note unwind Segue reverse transition