Pop返回控制器的前几级

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

你可能感兴趣的:(Pop返回控制器的前几级)