iOS interface jump

Source: Internet
Author: User

  • When we jump from the A interface to C and need to return to the B interface, you can do the following in the A-interface jump method, a interface to take the current interface, or return to the A interface will invoke the Reload method
[self.navigationController setViewControllers:@[self, B, C] animated:YES];
  • When we need to jump to the D interface from the B interface and then return, we can use:
NSMutableArray * ctlArr =[NSMutableArray arrayWithArray:self.navigationController.viewControllers]; [ctlArr addObject:C];[ctlArr addObject:D];[self.navigationController setViewControllers:ctlArr animated:YES];

The interface can be removed from the viewcontrollers when it is returned, and if the generated interface does not want to go back to the Viewdidload method, it is necessary to take the existing controller, which avoids the reload of the interface. When we try to change the interface by present, we can add the callback method through the controller that we present out. The above operation can be done in the Prensent interface to replace the interface displayed by the current controller after calling dismiss.

iOS interface jump

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.