Guest User

Untitled

a guest
Apr 25th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. iPhone: How to hide tab bar to show fullscreen view
  2. [self.navigationController setNavigationBarHidden:activated animated:YES];
  3.  
  4. CATransition *animation = [CATransition animation];
  5. [animation setType:kCATransitionFade];
  6. [[self.view.window layer] addAnimation:animation forKey:@"layerAnimation"];
  7. [self.tabBarController.tabBar setHidden:YES];
  8.  
  9. // Display tab bar animated
  10. CATransition *animation = [CATransition animation];
  11. animation setType:kCATransitionFade];
  12. [[self.view.window layer] addAnimation:animation forKey:@"layerAnimation"];
  13. [self.tabBarController.tabBar setHidden:NO];
  14.  
  15. [[self navigationController] setHidesBottomBarWhenPushed:YES];
  16.  
  17. self.hidesBottomBarWhenPushed = YES;
  18. this will hide the tabbar
  19.  
  20. tabBarController.tabBar.hidden = YES
Advertisement
Add Comment
Please, Sign In to add comment