title: Tap Gesture to Hide Navigation Bar, Tab Bar, and Status Bar
body: <p>I am trying to implement a tap gesture on my web view to hide/show the navigation bar, tab bar, and status bar.  I have the hiding/showing of the navigation bar working fine and I can hide the status bar but not get it to show back up.  The tab bar items get hidden but the bar is still there.  Can anyone help with this?</p>
  
  <pre><code>- (void)toggleBars:(UITapGestureRecognizer *)gesture
  {   
      [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
      BOOL statusBarHidden = YES;
  
      BOOL barsHidden = self.navigationController.navigationBar.hidden;
      [self.navigationController setNavigationBarHidden:!barsHidden animated:YES];
  
      BOOL tabBarHidden = self.tabBarController.tabBar.hidden;
      [self.tabBarController.tabBar setHidden:!tabBarHidden];
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view from its nib.
  
      UIBarButtonItem *systemAction = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(showMenu)];
      self.navigationItem.rightBarButtonItem = systemAction;
  
      UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(toggleBars:)];
      [webView addGestureRecognizer:singleTap];
      singleTap.delegate = self;
  }
  
  - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
  {
      return YES;
  }
  </code></pre>
  
  <p>EDIT:  It looks like the tab bar is hiding but my webview just isn't filling the empty space.  How can I have it fill the space when the tab bar is hidden?</p>