回到上一级目录
[self.navigationController popViewControlleranimated:YES];
选择回到哪一级目录
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:0] animated:YES];
选择回到根基视图的话也可以这样:
[self.navigationController popToRootViewControllerAnimated:YES]