In the previous use of the presentviewcontroller used more, but lifted the navigationcontroller after looking at the inside of the method, there has been seen inside the method Ah,
For example, return to the previous level of the interface:[self. Navigationcontroller popviewcontrolleranimated:YES];
return to the main interface: [self. Navigationcontroller poptorootviewcontrolleranimated:YES];
Jump to the specified interface:
Newconfigviewcontroller *HOMEVC = [[newconfigviewcontroller alloc] init];
uiviewcontroller *target = nil;
for (uiviewcontroller * Controller in self. Navigationcontroller. Viewcontrollers) { // traversal
if ([Controller iskindofclass: [Homevc class]]) { // here to determine if the page you want to jump to
target = controller;
}
}
if (target) {
[self. Navigationcontroller poptoviewcontroller: Target animated:YES]; // jump
}
iOS Navigationcontroller jump to the Pointing interface