所以这里是我有: 一个UITabBarController处理不同的UIViewControllers。在其中一个UIViewController中,我试图切换当设备旋转到横向时显示的视图。 的重要组成部分,是在横向显示的视图必须采取整个屏幕...隐藏TabBar当旋转iPhone设备到风景
我已经正确实现的方法:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
其实我有我的旋转产生正确的,我我观看swaped。 我甚至隐藏状态栏,导航栏和标签栏但我继续有一个空格在屏幕的底部,这是TabBar的地方...
因此,我假设设置隐藏属性的tabBar不足以在整个屏幕上显示视图。我认为在TabBarController或甚至MainWindow中有一些东西需要说“我现在不需要TabBarController”。但我不明白如何正确解决这个问题。
如果有人遇到过这个问题,我将不胜感激。
谢谢, 萨米人。
你救了我的一天..谢谢男人... – Krishnabhadra 2011-03-31 07:22:07
+1也适合我! – 2011-05-11 14:06:51
请标记为答案... :)它的工作原理! ) – 2013-12-09 03:34:46