"We all love Paul Hearty" Stanford IOS8 public class personal note unwind Segue reverse transition

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.