iOS navigation controller Uinavigationcontroller, controller a jumps (push) to B, B jumps (push) to C, but C back (pop) enters a

Source: Internet
Author: User

Reference: StackOverflow

iOS navigation controller Uinavigationcontroller, controller a jumps (push) to B, B jumps (push) to C, but C back (pop) enters a. The code in the B jump (push) to C is written as follows:

     Uinavigationcontroller *navcontroller = [[Self.navigationcontroller retain] autorelease];     [Navcontroller Popviewcontrolleranimated:no];     Viewcontrollerc *_viewcontroller = [[[[Viewcontrollerc alloc] init] autorelease];     [Navcontroller Pushviewcontroller:_viewcontroller Animated:yes];

Code parsing

    Self.navigationcontroller (..., Viewcontrollera, Viewcontrollerb)    //Navcontroller (nil)    Uinavigationcontroller *navcontroller = [[Self.navigationcontroller retain] autorelease];    Self.navigationcontroller (..., Viewcontrollera, Viewcontrollerb)    //Navcontroller (..., Viewcontrollera, Viewcontrollerb)    [Navcontroller Popviewcontrolleranimated:no];    Self.navigationcontroller (nil)    //Navcontroller (..., viewcontrollera)    Viewcontrollerc * _viewcontroller = [[[Viewcontrollerc alloc] init] autorelease];    _viewcontroller.messageentity = [Self.listarray objectAtIndex:indexPath.row];        Self.navigationcontroller (nil)    //Navcontroller (..., Viewcontrollera)    [Navcontroller Pushviewcontroller:_viewcontroller Animated:yes];    Self.navigationcontroller (nil)    //Navcontroller (..., Viewcontrollera, VIEWCONTROLLERC)


iOS navigation controller Uinavigationcontroller, controller a jumps (push) to B, B jumps (push) to C, but C back (pop) enters a

Related Article

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.