iphone - Hide an UITabBar when Orientation change -


I have a very simple question but the answer is not so easy.

Method of frame

MyAppDelegate.tabBarController.tabBar frame = CGRActMake (& lt; below & off; & gt; & gt;);

Works fine, but I have a blank area, so tried to play with tabBarController.view.frame and myViewController.view.frame, but I did not get any good results .

Navigation Controller Route

  myOtherVC.hideTabBarWhenPushed = Yes; [Self. Navigation controller Push ViewController: animated myOtherVC: no];  

works but is not a good solution for my app

Update:

  [AppDelegate remove .tabBarController.viewproseppace]; [Self.view removeFromSuperview]; [AppDelegate.window addSubview: self.view]; Self.view.frame = CGRectMake (0,0480,320);  

works fine but no longer autorotate (and of course, I should not change the shouldautototate and it always gives yes)


How can I catch my tabbeer and how can I get my current view?


thanks

combined with the current solution You can use:

  [[UID device current device] is launching the Digestion Orientation Notification]; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (Diarrotate) Name: @ "UIDewoice Orientation Did Change Notification" Object: Nile]; To detect rotation,  

(I think you can add it to the scene. Transform = Cagefintermformation to rotate it ...?)


Comments