About hide toolbar in iphone app

Posted by Jagie on Stack Overflow See other posts from Stack Overflow or by Jagie
Published on 2010-06-02T04:06:43Z Indexed on 2010/06/02 4:13 UTC
Read the original article Hit count: 265

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about hide