One Quickie


Hiding the navigation bar (UINavigationController->General)
Say you had a main screen that doesn't need to show the navigation bar. When you "Back" from another view controller your delegate will get called. You can decide then whether to turn off the nav bar.
- (void) navigationController: (UINavigationController *) navigationController
       willShowViewController: (UIViewController *) viewController
                     animated: (BOOL) animated {
    if (viewController == _menuController) {
        [_navigationController setNavigationBarHidden: YES
                               animated: YES];
    }
} // willShowViewController



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com