views:

1045

answers:

3

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

tnx :)

+5  A: 

navigationItem.hidesBackButton = YES

bpapa
A: 

Another option is to simply not set the navigation controller's back button, when pushing a new view controller. It's not a requirement.

Alex Reynolds
The back button is automatically set with the title of the parent view controller
prendio2
A: 

I ran into this issue and used following to hide the nav bar:

[self.navigationController setNavigationBarHidden: YES animated:YES];

jamihash