Question

After pushViewController, how to disable the backBarButtonItem, that going back will not be possible?

Was it helpful?

Solution

navigationItem.hidesBackButton = YES

OTHER TIPS

if you use a storyboard, click Navigation Item and add "hidesBackButton" path into the Key Path Attributes tag.

enter image description here

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
scroll top