How to hide UITabbar and UINavigationBar at the top when UIView changes to LandscapeOrientation?

StackOverflow https://stackoverflow.com/questions/4248046

  •  27-09-2019
  •  | 
  •  

Question

I am using tabbarcontroller application with 4 tabs, each tab integrate with UInvaigationcontroller, when get in to detail page from first page, showing html text in UIWebview. when you do orientation to Landscape, need to hide tabbarcontroller and navigation controller from that particular page.

Regards

sri

Was it helpful?

Solution

for the UINavigationController, in your rotate method (probably willRotateToInterfaceOrientation:, use self.navigationController.navigationBarHidden = YES

for the UITabBarController its going to be a bit more application specific, depends on how it is all interlinked.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top