Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mancha

macrumors newbie
Original poster
Aug 10, 2008
3
0
Hi,

i have a navigation controllers hierarchy and i need to disable back item from a child navigation controller. Is it possible?

i tried the following:

[self.navigationController.navigationBar.backItem.backBarButtonItem setEnabled:NO];
[self.navigationItem.backBarButtonItem setEnabled:NO];
[self.navigationItem.leftBarButtonItem setEnabled:NO];
[self.parentViewController.navigationItem.backBarButtonItem setEnabled:NO];

it doen't make any effect


thanks.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
I think the only thing you can do right now is replace the back button with a new button but that new button doesn't have the back button style, unfortunately.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.