Back to previous view controller

Go to previous view controller
[self.navigationController popViewControllerAnimated:YES];

Go to root view controller
[self.navigationController popToRootViewControllerAnimated:YES];

Go to any view controller
[self.navigationController popToViewController:viewControllerObject animated:YES];

沒有留言: