Go to very beginning of UINavigationController after going some pages deep
-
22-09-2019 - |
Question
I want to go to the very beginning of the UINavigationController
after going deep several pages. If I try the following code, it will only go back one view.
[self.navigationController popViewControllerAnimated:YES];
I want to do this action on a "cancel" button placed on the top right.
Solution
[self.navigationController popToRootViewControllerAnimated:YES];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow