多个视图控制器的返回

int index = (int)[[self.navigationController viewControllers]indexOfObject:self];
    [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:(index -2)] animated:YES];

你可能感兴趣的:(多个视图控制器的返回)