views:

186

answers:

2

I have a navigationController which root viewController has no toolbar,but the root viewController navigates to a viewController which has a always visible toolbar.I must assure the root viewController's toolbar is hidden whether it is presented first or its above viewController is poped in the navigationController stack.So,I use the following code in the root viewController:

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setToolbarHidden:YES animated:YES];
}

is this the best sulotion?or I should use "hidesBottomBarWhenPushed" etc?

A: 

Used it a couple of times and works perfect

alecnash
thank you very much!
Jagie
A: 

Do you know how to do it in a webapp?