- 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