SHARE
TWEET

Untitled

a guest Jan 14th, 2009 160 Never
  1. - (void)navigationController:(UINavigationController *)navigationController
  2.       willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
  3.     if ([viewController isEqual:[navigationController.viewControllers objectAtIndex:0]]) {
  4.         // tab bar icon touched while some view controller from "more" is active
  5.         [[self moreNavigationController] setNavigationBarHidden:NO animated:NO];
  6.         NSLog(@"Unhiding navigation bar");
  7.     } else {
  8.         [[self moreNavigationController] setNavigationBarHidden:YES animated:NO];
  9.         NSLog(@"Hiding navigation bar");
  10.     }
  11. }
RAW Paste Data
Top