This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 14th, 2009  |  syntax: Objective C  |  size: 0.60 KB  |  views: 158  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data