Controller logic Jump Push POP

Source: Internet
Author: User

Recently developed a new project, is a shopping mall type of project, which is my responsibility for the details of the interface, there is nothing to say, the right side of the NavBarItem to jump to the front page of the options, I abused the dead, and colleagues in the addition of a relay controller, just started completely confused, and then slowly clear.

First of all, the push and pop, these two methods is the operation of a stack, push is to the stack inside the controller, Pop is out of the stack, the controller pops up, in the stack to do the top-level controller is displayed on the interface. If you don't have a controller in your stack, you don't want pop to a. A pop requires an operation between the controllers in the same stack.

The push controller presses the controller into the stack, and one object cannot be pressed into the second. A Class A AA object can be pressed into the AB object. When the controller is located in the stack with ABCDEFGF controller is, from the G controller can pop to the A-f controller, if you want to pop to the F controller is not possible, only pop to the bottom of its own controller, similarly, not in the G object stack of H controller also can not be pop to

Controller logic Jump Push POP

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.