I am trying to implement a binding gesture on my web view in order to hide / show the navigation bar, tab bar and status bar. I have a hide / show navigation bar working fine and I can hide the status bar but not get it to show a backup. The tab bar items are hidden, but the bar is still there. Can anyone help with this?
- (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];
EDIT: It looks like the tab bar is hiding, but my webview just doesn't fill the empty space. How can I fill in the gap when the tab bar is hidden?
source share