After pushViewController, how to disable the backBarButtonItem?
-
20-09-2019 - |
Question
After pushViewController, how to disable the backBarButtonItem, that going back will not be possible?
Solution
navigationItem.hidesBackButton = YES
OTHER TIPS
if you use a storyboard, click Navigation Item and add "hidesBackButton" path into the Key Path Attributes tag.
I ran into this issue and used following to hide the nav bar:
[self.navigationController setNavigationBarHidden: YES animated:YES];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow