Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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